public void Invoke(Transmission.Session Session, Types.InMessage Message) { var Ping = ((Message.GetInt32() + Message.GetInt32()) / 2); if (Ping > int.Parse(Settings.GetValue("TCP.Sessions.MaxPing"))) { Solution.AppendPaint(); Solution.AppendLine("Session: Closed({0}) Ping to high({1})",Session.Id, Ping); // SessionHandler.CloseClientSocket(Session.Args); } }
public void Invoke(Transmission.Session Session, Types.InMessage Message) { MessageHandler.HandleComposer(Session, new PingMessageComposer(), Message.GetInt32()); }