Пример #1
0
 /// <summary>
 /// 开始接收消息指令
 /// </summary>
 public void BeginReceive(ClientReceiveDelegate block)
 {
     this.RecieveBlock = block;
     this.Client.BeginReceive(this.ByteBuffer, 0, this.ByteBuffer.Length, SocketFlags.None, new System.AsyncCallback(ReceiveCompleted), this.Client);
 }
Пример #2
0
 /// <summary>
 /// 开始接收消息指令
 /// </summary>
 public void BeginReceive(ClientReceiveDelegate block)
 {
     this.RecieveBlock = block;
     this.Client.BeginReceive (this.ByteBuffer, 0, this.ByteBuffer.Length, SocketFlags.None, new System.AsyncCallback (ReceiveCompleted), this.Client);
 }