예제 #1
0
 static void TcpServerClientDisconnected(object sender, ClientConnectionEventArgs args)
 {
     Console.WriteLine("Lost Connection from:" + ((IPEndPoint)args.Client.Client.RemoteEndPoint).Address);
 }
예제 #2
0
 protected virtual void OnClientDisconnect(ClientConnectionEventArgs eventArgs)
 {
     if (ClientDisconnected != null)
         ClientDisconnected(this, eventArgs);
 }