Exemplo n.º 1
0
 private void OnClientConnected(object sender, TcpClientConnectedEventArgs e)
 {
     _clients.AddOrUpdate(e.TcpClient.Client.RemoteEndPoint.ToString(), e.TcpClient, (n, o) => { return e.TcpClient; });
 }
Exemplo n.º 2
0
 static void server_ClientConnected(object sender, TcpClientConnectedEventArgs e)
 {
     Logger.Debug(string.Format(CultureInfo.InvariantCulture, "TCP client {0} has connected.", e.TcpClient.Client.RemoteEndPoint.ToString()));
 }