Ejemplo n.º 1
0
 private void OnClientDisconnected(object sender, TcpClientDisconnectedEventArgs e)
 {
     TcpClient clientToBeThrowAway;
       _clients.TryRemove(e.TcpClient.Client.RemoteEndPoint.ToString(), out clientToBeThrowAway);
 }
Ejemplo n.º 2
0
 static void server_ClientDisconnected(object sender, TcpClientDisconnectedEventArgs e)
 {
     Logger.Debug(string.Format(CultureInfo.InvariantCulture, "TCP client {0} has disconnected.", e.TcpClient.Client.RemoteEndPoint.ToString()));
 }