/// <summary> /// Deregisters a connection /// </summary> /// <param name="connection"></param> public static void DeRegister(TCPConnection connection) { lock (connectionListLock) connections.Remove(connection); }
/// <summary> /// Registers a new connection /// </summary> /// <param name="connection"></param> public static void Register(TCPConnection connection) { lock (connectionListLock) connections.Add(connection); }