Пример #1
0
        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);
        }
Пример #2
0
 public SocketDataReceivedEventArgs(TCPPacket packet)
 {
     Packet = packet;
 }