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; }
public void SendPacket(PacketOut p) { p.Finalise(); var parray = p.strm.ToArray(); ClientConnection.Send(parray, parray.Length); }
public void SendPacket(PacketOut p) { p.Finalise(); var parray = p.strm.ToArray(); sock.Send(parray, parray.Length); }