예제 #1
0
        public Packet ReceivePacket()
        {
            IPEndPoint remoteIPEndPoint = new IPEndPoint(IPAddress.Any, 0);

            bReceived = client.Receive(ref remoteIPEndPoint);

            return(encoding.Decode(bReceived));
        }
예제 #2
0
        public Packet ReceivePacket()
        {
            bReceived = client.Receive(ref remoteIPEndPoint);

            receivedPacket = encoding.Decode(bReceived);

            return(receivedPacket);
        }