Esempio n. 1
0
        public static void ReadClientStatus(Client client, PacketReader reader)
        {
            ClientStatusPacket csp = new ClientStatusPacket();
            csp.Read(reader);

            if(!reader.Failed)
                Client.HandlePacketClientStatus(client, csp);
        }
Esempio n. 2
0
 public static void HandlePacketClientStatus(Client client, ClientStatusPacket packet)
 {
     Console.WriteLine("Status arrived {0}", packet.Status);
     if (packet.Status == 0 && IsAuthenticated(client))
         Task.Factory.StartNew(client.SendLoginSequence);
 }