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