Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }