UDPServer.UDPServer C# (CSharp) Method

UDPServer() public method

public UDPServer ( int port ) : System
port int
return System
    public UDPServer(int port)
    {
        receivedData = new byte[1024];
        sendData = new byte[1024];
        ipep = new IPEndPoint(IPAddress.Any, port);

        newsock = new Socket(AddressFamily.InterNetwork,
                        SocketType.Dgram, ProtocolType.Udp);
        newsock.Bind(ipep);
    }