/// <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); }
/// <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); }