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