2009年2月23日
摘要: using System.Net; using System.Net.Sockets; using System.Text; public class SynchronousSocketClient { public static void StartClient() { // Data buffer for incoming data. byte[] bytes = new byte[1024]... 阅读全文
posted @ 2009-02-23 14:24 漓石 阅读(501) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Net; using System.Net.Sockets; using System.Threading; using System.Text; // State object for receiving data from remote device. public class StateObject { // Client socket.... 阅读全文
posted @ 2009-02-23 14:23 漓石 阅读(1177) 评论(0) 推荐(0) 编辑