Esempio n. 1
0
        public UDPListener(IPEndPoint endPoint) : this()
        {
            Protocol = new UDPConnectionProtocol(endPoint);
            ConnectionManager man = new ConnectionManager(Protocol);

            Connections.Add(man.GetConnection());
        }
Esempio n. 2
0
        public UDPListener(IPAddress address, int port) : this()
        {
            Protocol = new UDPConnectionProtocol(new IPEndPoint(address, port));
            ConnectionManager man = new ConnectionManager(Protocol);

            Connections.Add(man.GetConnection());
        }
Esempio n. 3
0
        public UDPListener(int port) : this()
        {
            IPEndPoint endPoint = new IPEndPoint(IPAddress.Any, port);

            Protocol = new UDPConnectionProtocol(endPoint);
            ConnectionManager man = new ConnectionManager(Protocol);

            Connections.Add(man.GetConnection());
        }