private void DoCleanup() { if (m_State == SessionState.Disconnecting && m_SessionThread.Join()) { m_SessionThread = null; m_State = SessionState.Disconnected; } }
private bool Connect() { if (m_SessionThread != null) { return(false); } m_Host = m_DataModel.ServerList.SelectedServer.Hostname; m_Port = m_DataModel.ServerList.SelectedServer.Port; m_SessionThread = new ServerSessionThread(this, m_DataModel, 1000 * Settings.Default.NetworkTimeout, Settings.Default.ReconnectInterval); m_SessionThread.Start(); return(true); }
public bool Connect(string host, int port) { if (m_SessionThread != null) { return(false); } m_Host = host; m_Port = port; m_SessionThread = new ServerSessionThread(this, m_DataModel, host, port, 1000 * Settings.Default.NetworkTimeout, Settings.Default.ReconnectInterval); m_SessionThread.Start(); return(true); }
private bool Connect() { if (m_SessionThread != null) { return false; } m_Host = m_DataModel.ServerList.SelectedServer.Hostname; m_Port = m_DataModel.ServerList.SelectedServer.Port; m_SessionThread = new ServerSessionThread(this, m_DataModel, 1000 * Settings.Default.NetworkTimeout, Settings.Default.ReconnectInterval); m_SessionThread.Start(); return true; }