Exemple #1
0
 private void DoCleanup()
 {
     if (m_State == SessionState.Disconnecting && m_SessionThread.Join())
     {
         m_SessionThread = null;
         m_State         = SessionState.Disconnected;
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
 private void DoCleanup()
 {
     if (m_State == SessionState.Disconnecting && m_SessionThread.Join())
     {
         m_SessionThread = null;
         m_State = SessionState.Disconnected;
     }
 }
Exemple #5
0
        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;
        }