BNETDocs
P2P 0x03 PKT_CLIENTREQ
Message Id:0x03
Message Name:PKT_CLIENTREQ
Direction:Peer to Peer
Used By:Diablo Retail, Diablo Shareware
Starcraft Japanese, Starcraft Broodwar
Starcraft Shareware, Starcraft Original
Warcraft II BNE
Format:

(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.