随笔分类 -  TCP/UDP

摘要:static void Main(string[] args) { Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); ... 阅读全文
posted @ 2015-05-21 13:49 nbu_djw 阅读(305) 评论(0) 推荐(0)
摘要:服务器端Socket socketWatch = null; Thread threadWatch = null; Dictionary dicSocket = new Dictionary(); Dictionary dicThread = new Dic... 阅读全文
posted @ 2015-05-20 09:41 nbu_djw 阅读(284) 评论(0) 推荐(0)
摘要:public static void WriteStringToFile(string FilePath, string Contend) { FileInfo fi = new FileInfo(FilePath); if (!fi.Di... 阅读全文
posted @ 2015-05-15 20:18 nbu_djw 阅读(362) 评论(0) 推荐(0)