public UDPHub(UDP UDP, UDPHubSettings Settings) { this._Settings = Settings; this._Peers = new Dictionary<IPEndPoint, UDPPeer>(); this._ConnectionRequests = new Dictionary<IPEndPoint, _ConnectionRequest>(); this._UDP = UDP; UDP.Received += new UDP.ReceiveRawPacketHandler(this._Receive); }
public UDPHub(UDP UDP) : this(UDP, new UDPHubSettings()) { }