Example #1
0
 private static int ViewDisconnectHandler(SessionTcpClient client)
 {
     if (!client.IsDead)
     {
         var addr = ((IPEndPoint)client.Client.RemoteEndPoint).Address;
         var port = ((IPEndPoint)client.Client.RemoteEndPoint).Port;
         Logger.Info("View Server Disconnection : {0} : {1}", new object[] { addr.ToString(), port });
     }
     SessionHandler.CheckSessionHealth(client.Session);
     return(1);
 }