예제 #1
0
 protected virtual void BeginDataReceive(ProxySocket socket)
 {
     if (this.socket == null || !this.socket.Connected)
     {
         return;
     }
     receiveBuf.Initialize();
     socket.BeginReceive(receiveBuf, 0, receiveBuf.Length, SocketFlags.None, new AsyncCallback(EndDataReceive), socket);
 }
예제 #2
0
 protected virtual void BeginDataReceive(ProxySocket socket)
 {
     if (this.socket == null || !this.socket.Connected)
     {
         return;
     }
     receiveBuf = new ByteBuffer();
     socket.BeginReceive(receiveBuf.ByteArray, 0, receiveBuf.ByteArray.Length, SocketFlags.None, new AsyncCallback(EndDataReceive), socket);
 }
예제 #3
0
 private void BeginReceiveLength()
 {
     Socket.BeginReceive(RecvBuffer, ReceivedLength, 4 - ReceivedLength, SocketFlags.None, ReceiveLengthCallback, null);
 }