相信技术的力量

我的力量
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年11月19日

摘要: 1)当线程调用的方法没有参数时,可以这样创建: Thread thread = new Thread(new ThreadStart(myStartingMethod)); thread.Start(); 2)当线程调用的方法有参数时,要这样创建: Thread thread = new Thread(new ParameterizedThreadStart(myStart... 阅读全文

posted @ 2008-11-19 20:08 三里人 阅读(217) 评论(0) 推荐(0)

摘要: 今天发了半天的时间做了一个网络程序--在线聊天器,使用到底端口号,必须在防火墙开启(当时把瑞星防火墙关闭了,但是还有微软自带的没关,郁闷了半天才知道),这个聊天器比较低级,必须先启动服务器端,再启动客服端;关掉一个,必须关闭两个,然后再重新启动。代码如下: 客服端: using System; using System.Collections.Generic; using System.Com... 阅读全文

posted @ 2008-11-19 20:01 三里人 阅读(277) 评论(0) 推荐(0)