public void DeRegisterConnection(NNTPConnection conn) { lock (Connections) { Connections.Remove(conn); } }
// Adds a conntions to the connection list, so it can be polled. public void RegisterConnection(NNTPConnection conn) { lock (Connections) { Connections.Add(conn); } }
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; }
public void UpdateSingleThreadInfo(NNTPConnection conn) { if (dlthreads != null) { dlthreads[conn.id].Invoke(dlthreads[conn.id].updateDelegate); } }