Exemple #1
0
        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);
        }
Exemple #2
0
 public UDPHub(UDP UDP)
     : this(UDP, new UDPHubSettings())
 {
 }