Пример #1
0
 public static void SendToServer(Packet packet)
 {
     if (Globals.LoginType == Globals.enumLoginType.Client || Globals.LoginType == Globals.enumLoginType.Clientless2)
     {
         gw_remote_security.Send(packet);
     }
     else
     {
         ClientlessGateway.Send(packet);
     }
 }
Пример #2
0
 private void Ping_Tick(object sender, EventArgs e)
 {
     if (Globals.LoginType == Globals.enumLoginType.Clientless)
     {
         if (Globals.Server != Globals.ServerEnum.None)
         {
             Packet response = new Packet(0x2002);
             if (Globals.Server == Globals.ServerEnum.Gateway)
             {
                 ClientlessGateway.Send(response);
             }
             else if (Globals.Server == Globals.ServerEnum.Agent)
             {
                 ClientlessAgent.Send(response);
             }
         }
     }
 }