示例#1
0
 public void Process(Tcp tcp, Packet packet)
 {
     var payload = Encoding.Default.GetBytes(packet.Payload); // windows-1252
     var password = Encoding.Default.GetBytes(tcp.Password);
     var encrypted = Crypto.GenerateAuth(payload, password);
     var authpacket = PacketTemplates.Auth(encrypted, Enums.OnlineStatus.Online);
     tcp.SendPacket(authpacket);
 }
示例#2
0
        public void Process(Tcp tcp, Packet packet)
        {
            var payload    = Encoding.Default.GetBytes(packet.Payload); // windows-1252
            var password   = Encoding.Default.GetBytes(tcp.Password);
            var encrypted  = Crypto.GenerateAuth(payload, password);
            var authpacket = PacketTemplates.Auth(encrypted, Enums.OnlineStatus.Online);

            tcp.SendPacket(authpacket);
        }
示例#3
0
 public void Process(Tcp tcp, Packet packet)
 {
     tcp.SendPacket(PacketTemplates.PING());
 }
示例#4
0
 public void Process(Tcp tcp, Packet packet)
 {
     tcp.SendPacket(PacketTemplates.PING());
 }