public void Disconnect() { if (m_bConnect) { return; } m_bConnect = false; if (m_Read != null) { m_Read.Close(); } if (m_Write != null) { m_Write.Close(); } if (m_Stream != null) { m_Stream.Close(); } if (m_Threader != null) { m_Threader.Abort(); } if (receiveThread != null) { receiveThread.Abort(); } currentAccount = null; listenSocket.Close(); }
public void initAccount(string requestID) { currentAccount = new Account(); currentAccount.name = requestID; initAccountArticles(currentAccount); }