/// <summary> /// Indicates that a peer managed by this hub is disconnect, without removing the peer. /// </summary> private void _Disconnect(UDPPeer Peer) { if (this.Disconnected != null) { this.Disconnected(Peer); } }
/// <summary> /// Adds a new peer to be managed by this hub. /// </summary> private void _Connect(UDPPeer Peer) { this._Peers[Peer.EndPoint] = Peer; if (this.Connected != null) { this.Connected(Peer); } }