public ControlPanelLoginSession(string host, int port, ControlPanelClient client) { this.commandTable = new Dictionary<ushort, Packet>(); this.Client = client; this.commandTable.Add(0xFE01, new Packets.Login.Get.SendLoginPong()); this.commandTable.Add(0xFE02, new Packets.Client.CP.MapPong()); Socket newSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); this.Connect(newSock, host, port); }
public override void OnClientDisconnect(Client client_t) { ControlPanelClient client = (ControlPanelClient)client_t; /*if (client.isMapServer) * { * Logger.ShowWarning("A map server just disconnected.",null); * LoginServer.charServerList[client.mapServer.worldID].DeleteMapServer(client.mapServer); * }*/ this.clients.Remove(client); }
public ControlPanelLoginSession(string host, int port, ControlPanelClient client) { this.commandTable = new Dictionary <ushort, Packet>(); this.Client = client; this.commandTable.Add(0xFE01, new Packets.Login.Get.SendLoginPong()); this.commandTable.Add(0xFE02, new Packets.Client.CP.MapPong()); Socket newSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); this.Connect(newSock, host, port); }