ServerBrowserGetServer

GameSpy SDK

ServerBrowserGetServer

Returns the SBServer object at the specified index.

SBServer ServerBrowserGetServer(
ServerBrowser sb,
int index );
RoutineRequired HeaderDistribution
ServerBrowserGetServer<sb_serverbrowsing.h>SDKZIP

Return Value

Returns the SBServer at the specified array index.  If index is greater than the bounds of the array, NULL is returned.

Parameters

sb
[in] ServerBrowser object intialized with ServerBrowserNew.
index
[in] The array index.

Remarks

Use ServerBrowserCount to retrieve the current number of servers in the array.  This index is zero based, so a list containing 5 servers will have the valid indexes 0 through 4. This list is usually populated using one of the list retrieval methods such as ServerBrowserUpdate.