Пример #1
0
        public UDPListener(IPEndPoint endPoint) : this()
        {
            Protocol = new UDPConnectionProtocol(endPoint);
            ConnectionManager man = new ConnectionManager(Protocol);

            Connections.Add(man.GetConnection());
        }
Пример #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());
        }
Пример #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());
        }