public Packet ReceivePacket() { IPEndPoint remoteIPEndPoint = new IPEndPoint(IPAddress.Any, 0); bReceived = client.Receive(ref remoteIPEndPoint); return(encoding.Decode(bReceived)); }
public Packet ReceivePacket() { bReceived = client.Receive(ref remoteIPEndPoint); receivedPacket = encoding.Decode(bReceived); return(receivedPacket); }