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); }
public SocketDataReceivedEventArgs(TCPPacket packet) { Packet = packet; }