コード例 #1
0
        public static PacketOutStream ping(long ticks)
        {
            PacketOutStream packet = new PacketOutStream();

            packet.writeShort((short)PacketOpcode.SERVER.PONG);
            packet.writeLong(ticks);
            return(packet);
        }
コード例 #2
0
        public static PacketOutStream pong()
        {
            DateTime        dt     = DateTime.UtcNow;
            PacketOutStream packet = new PacketOutStream();

            packet.writeShort((short)PacketOpcode.CLIENT.PING);
            packet.writeLong(dt.Ticks);
            return(packet);
        }