public UDPListener(IPEndPoint endPoint) : this() { Protocol = new UDPConnectionProtocol(endPoint); ConnectionManager man = new ConnectionManager(Protocol); Connections.Add(man.GetConnection()); }
public UDPListener(IPAddress address, int port) : this() { Protocol = new UDPConnectionProtocol(new IPEndPoint(address, port)); ConnectionManager man = new ConnectionManager(Protocol); Connections.Add(man.GetConnection()); }
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()); }