Beispiel #1
0
            internal void Detach()
            {
                if (m_ClientSocket == null)
                {
                    return;
                }
                CClientSocket cs = m_ClientSocket;

                m_ClientSocket = null;
                cs.Detach(this);
            }
Beispiel #2
0
 public void Dispose()
 {
     lock (m_cs)
     {
         CleanCallbacks();
         if (m_ClientSocket != null)
         {
             m_ClientSocket.Detach(this);
             m_ClientSocket = null;
         }
     }
 }