private void EndAcceptTcpClient(IAsyncResult ar)
        {
            if (!(this.tcpListener is null))
            {
                try
                {
                    TcpClient      Client     = this.tcpListener.EndAcceptTcpClient(ar);
                    PeerConnection Connection = new PeerConnection(Client, this, (IPEndPoint)Client.Client.RemoteEndPoint);

                    this.tcpListener.BeginAcceptTcpClient(this.EndAcceptTcpClient, null);
                    this.State = PeerToPeerNetworkState.Ready;

                    this.PeerConnected(Connection);

                    Connection.Start();
                }
                catch (Exception)
                {
                    if (this.state != PeerToPeerNetworkState.Closed)
                    {
                        this.State = PeerToPeerNetworkState.Error;
                    }
                }
            }
        }
		private void EndAcceptTcpClient(IAsyncResult ar)
		{
			if (this.tcpListener != null)
			{
				try
				{
					TcpClient Client = this.tcpListener.EndAcceptTcpClient(ar);
					PeerConnection Connection = new PeerConnection(Client, this, (IPEndPoint)Client.Client.RemoteEndPoint);

					this.tcpListener.BeginAcceptTcpClient(this.EndAcceptTcpClient, null);
					this.State = PeerToPeerNetworkState.Ready;

					this.PeerConnected(Connection);

					Connection.Start();
				}
				catch (Exception)
				{
					if (this.state != PeerToPeerNetworkState.Closed)
						this.State = PeerToPeerNetworkState.Error;
				}
			}
		}