ServerBrowserCount
Retrieves the current list of games from the GameSpy master server.
- int ServerBrowserCount(
- ServerBrowser sb );
Routine | Required Header | Distribution |
---|---|---|
ServerBrowserCount | <sb_serverbrowsing.h> | SDKZIP |
Return Value
Returns the number of servers in the current list. The index is zero based when referencing.
Parameters
- sb
- [in] ServerBrowser object intialized with ServerBrowserNew.
Remarks
The ServerBrowserCount function returns the number of servers in the current list. This may be a combination of servers returned by ServerBrowserUpdateand servers added manually by ServerBrowserAuxUpdateIP. Please note that index functions such as ServerBrowserGetServeruse a zero based index. The actual valid indexes are 0 to ServerBrowserCount()-1.
Section Reference: Gamespy Server Browsing SDK
See Also: ServerBrowserNew, ServerBrowserUpdate, ServerBrowserGetServer