P2P 0x03 PKT_CLIENTREQ

Transport Layer:User Datagram Protocol (UDP)
Application Layer:Battle.net v1 UDP Messages (PKT)
Message Id:0x03
Message Name:PKT_CLIENTREQ
Direction:Peer to Peer
Used By:Starcraft Original, Starcraft Broodwar
Starcraft Shareware, Starcraft Japanese
Diablo Retail, Diablo Shareware
Warcraft II BNE
Message Format:
(does not include protocol header)
(UINT32) Code 

Remarks

This message is used to determine the latency to a game on Battle.net.

If code is zero, then the message is a ping request from another client (and this client should respond with a PKT_CLIENTREQ using a non-zero code). Otherwise, the message is a ping response.

In previous versions of UDP enabled clients they would use GetTickCount() as the return value (the recieving end would then do math on that value to get the latency).
Clients now use 0x01 for the value and do all the math locally, this resolves time zone issues and other stuffs.

Leaky

Comments

no one has commented yet.