CSocket异步通讯实现详解.docVIP

  • 39
  • 0
  • 约3.96千字
  • 约 5页
  • 2016-12-29 发布于重庆
  • 举报
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. public Socket workSocket = null; // Size of receive buffer. public const int BufferSize = 256; // Receive buffer. public byte[] buffer = new byte[BufferSize]; // Received data string. public StringBuilder sb = new StringBuilder(); } public class AsynchronousClient { // The port number for the remote device. private const int port = 11000; // ManualResetEvent instances signal completion. private s

文档评论(0)

1亿VIP精品文档

相关文档