Exemplo n.º 1
0
        public static PacketProcessResult HandlePing(PacketProcessor p)
        {
            CMSG_PING pkt = new CMSG_PING();
            pkt.Read(p.CurrentPacket);

            PacketOut pout = new PacketOut(RealmOp.SMSG_PONG);
            pout.Write(pkt.ping);
            pout.Finalise();
            p.ClientConnection.Send(pout.strm.ToArray());

            return PacketProcessResult.Processed;
        }
Exemplo n.º 2
0
 public void SendPacket(PacketOut p)
 {
     p.Finalise();
     var parray = p.strm.ToArray();
     ClientConnection.Send(parray, parray.Length);
 }
Exemplo n.º 3
0
 public void SendPacket(PacketOut p)
 {
     p.Finalise();
     var parray = p.strm.ToArray();
     sock.Send(parray, parray.Length);
 }