Inheritance: SagaLib.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);
        }
Example #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);
        }
Example #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);
        }