Inheritance: System.Net.Sockets.TcpClient
Exemplo n.º 1
0
 public void DeRegisterConnection(NNTPConnection conn)
 {
     lock (Connections)
     {
         Connections.Remove(conn);
     }
 }
Exemplo n.º 2
0
 // Adds a conntions to the connection list, so it can be polled.
 public void RegisterConnection(NNTPConnection conn)
 {
     lock (Connections)
     {
         Connections.Add(conn);
     }
 }
Exemplo n.º 3
0
        public void Connect(MainGUI mainGui)
        {
            Logging.Instance.Log("Connecting to {0}, spawning {1} connections", name, connections);
            nntpConnections = new NNTPConnection[connections];

            // test code
            for (int i = 0; i < connections; i++ )
            {
                nntpConnections[i] = new NNTPConnection(i, this, QueueHandler.Instance);
                nntpConnections[i].mainGui = mainGui;
            }
            isConnected = true;
        }
Exemplo n.º 4
0
 public void UpdateSingleThreadInfo(NNTPConnection conn)
 {
     if (dlthreads != null)
     {
         dlthreads[conn.id].Invoke(dlthreads[conn.id].updateDelegate);
     }
 }