Transport Layer:User Datagram Protocol (UDP)
Application v1 UDP Messages (PKT)
Message Id:0x03
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 


This message is used to determine the latency to a game on

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.



no one has commented yet.