Gwupe.Communication.P2P.RUDP.Tunnel.Transport.TCPTransport.CloseConnection C# (CSharp) Method

CloseConnection() public method

public CloseConnection ( byte connectionId ) : void
connectionId byte
return void
        public void CloseConnection(byte connectionId)
        {
            // if this is id is in our list of local connections
            if (_tcpConnections.IsLocalOpenConnection(connectionId))
            {
                // we close the connection (if its in the process of being closed, this will do nothing)
                _tcpConnections.GetLocalOpenConnection(connectionId).Connection.Close();
            }
        }