Inheritance: System.Net.Sockets.TcpClient
示例#1
0
 public void DeRegisterConnection(NNTPConnection conn)
 {
     lock (Connections)
     {
         Connections.Remove(conn);
     }
 }
示例#2
0
 // Adds a conntions to the connection list, so it can be polled.
 public void RegisterConnection(NNTPConnection conn)
 {
     lock (Connections)
     {
         Connections.Add(conn);
     }
 }
示例#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;
        }
示例#4
0
文件: MainGUI.cs 项目: maesse/NZBHags
 public void UpdateSingleThreadInfo(NNTPConnection conn)
 {
     if (dlthreads != null)
     {
         dlthreads[conn.id].Invoke(dlthreads[conn.id].updateDelegate);
     }
 }