Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }