protected void BeginReceive(Socket client)
        {
            if (client == null) return;
            TCPPacket packet = new TCPPacket(client, mBufferSize);
            SocketError socketError;

            client.BeginReceive(packet.Buffer, 0, packet.Buffer.Length, SocketFlags.None, out socketError, mDataReceivedCallback, packet);
        }
Beispiel #2
0
 public SocketDataReceivedEventArgs(TCPPacket packet)
 {
     Packet = packet;
 }