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"); } }
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); } }
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); } } } }