Exemplo n.º 1
0
 private void radioButton1_CheckedChanged(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         Globals.LoginType    = Globals.enumLoginType.Clientless;
         radioButton2.Enabled = false;
         ClientlessGateway gw = new ClientlessGateway();
         gw.Start(Globals.IP, "40510");
     }
 }
Exemplo n.º 2
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);
     }
 }
Exemplo n.º 3
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);
             }
         }
     }
 }