Socket通讯.docVIP

  • 5
  • 0
  • 约1.54万字
  • 约 16页
  • 2018-01-05 发布于河南
  • 举报
Socket通讯

Socket通讯: public class XmlSocket { //异步socket诊听 // Incoming data from client.从客户端传来的数据 public static string data = null; // Thread signal.线程 用一个指示是否将初始状态设置为终止的布尔值初始化 ManualResetEvent 类的新实例。 public static ManualResetEvent allDone = new ManualResetEvent(false); //static void Main(string[] args) //{ // StartListening(); //} public static void StartListening() { // Data buffer for incoming data. 传入数据缓冲 byte[] bytes = new Byte[1024]; // Establish the local endpoint for the socket. 建立本地端口 // The DNS name of the computer // running the listener is . IPAddress ipAddress; String ipString = Configura

文档评论(0)

1亿VIP精品文档

相关文档