예제 #1
0
 internal bool RemoveConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         return(_addressTally.RemoveTally(connection.GetIPAddress(), connection) && _connections.Remove(connection));
     }
 }
예제 #2
0
 internal void RemoveConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         var unused = _addressTally.RemoveTally(connection.GetIpAddress(), connection) && _connections.Remove(connection);
     }
 }
예제 #3
0
 internal bool AddConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         return(_addressTally.AddTally(connection.GetIPAddress(), connection) && _connections.Add(connection));
     }
 }
예제 #4
0
 internal void AddConnection(ClientConnectionBase connection)
 {
     lock (_connectionLock)
     {
         var unused = _addressTally.AddTally(connection.GetIpAddress(), connection) && _connections.Add(connection);
     }
 }