SBServerGetPing

GameSpy SDK

SBServerGetPing

Returns the stored ping time for the specified server.

int SBServerGetPing(
SBServer server );
RoutineRequired HeaderDistribution
SBServerGetPing<sb_serverbrowsing.h>SDKZIP

Return Value

The stored server response time.

Parameters

server
[in] A valid SBServer object.

Remarks

The SBServerGetPing function will return the stored response time of the server.  This response time is caculated from the last server update.  Servers behind a firewall will return a ping time of 0.  This is because no actual query was sent.