//##################################################################################### public void Clear() { m_receiver.Stop(); m_sender.Stop(); if (m_socket != null) { m_socket.Close(); m_socket = null; } }
public void Disconnect() { m_runCheckConnection = false; if (m_checkConnectionThread != null) { m_checkConnectionThread.Join(); m_checkConnectionThread = null; } // 메세지 수신/송신 중단 m_receiver.Stop(); m_sender.Stop(); // 접속 해제 if (m_client != null) { m_client.Close(); m_client = null; } }