PSO2SERVER/Server/Protocol/Handlers/11-ClientHandler/11-0D-ClientPingHandler.cs
2024-11-27 18:05:53 +08:00

23 lines
606 B
C#

using System;
using System.IO;
using PSO2SERVER.Protocol.Packets;
namespace PSO2SERVER.Protocol.Handlers
{
[PacketHandlerAttr(0x11, 0x0D)]
public class ClientPingHandler : PacketHandler
{
#region implemented abstract members of PacketHandler
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{
var reader = new PacketReader(data, position, size);
var clientTime = reader.ReadUInt64();
context.SendPacket(new ClientPongPacket(clientTime));
}
#endregion
}
}