ServerBrowserThink

GameSpy SDK

ServerBrowserThink

Allows ServerBrowsingSDK to continue internal processing including processing query replies.

SBError ServerBrowserThink(
ServerBrowser sb );
RoutineRequired HeaderDistribution
ServerBrowserThink<sb_serverbrowsing.h>SDKZIP

Return Value

If an error occurs, a valid SBError error code is returned. Otherwise, sbe_noerror is returned.

Parameters

sb
[in] ServerBrowser object intialized with ServerBrowserNew.

Remarks

The ServerBrowserThink function is required for the SDK to process incoming data.  Because of the single threaded design of the GameSpy SDKs, all data is processed during this call, and processing is paused when this call is complete.   When updating server lists, this function should be called as frequently as possible to reduce the latency associated with server response times.  If this function is not called often enough, server pings may be inflated due to processing delays.

Section Reference: Gamespy Server Browsing SDK

See Also: ServerBrowserNew