/// <SUMMARY> /// Ends connection with the remote host. /// </SUMMARY> public void EndConnection() { if (_conn != null && _conn.Connected) { _conn.Shutdown(SocketShutdown.Both); _conn.Close(); } _server.DropConnection(this); }
/// <SUMMARY> /// Ends connection with the remote host. /// </SUMMARY> public void EndConnection() { //if (m_conn != null && m_conn.Connected) //{ // m_conn.Shutdown(SocketShutdown.Both); // m_conn.Close(); //} m_server.DropConnection(this); }