public static PacketOutStream ping(long ticks) { PacketOutStream packet = new PacketOutStream(); packet.writeShort((short)PacketOpcode.SERVER.PONG); packet.writeLong(ticks); return(packet); }
public static PacketOutStream pong() { DateTime dt = DateTime.UtcNow; PacketOutStream packet = new PacketOutStream(); packet.writeShort((short)PacketOpcode.CLIENT.PING); packet.writeLong(dt.Ticks); return(packet); }