ServerBrowserGetServerByIP

GameSpy SDK

ServerBrowserGetServerByIP

Returns the SBServer with the specified IP.

SBServer ServerBrowserGetServerByIP(
ServerBrowser sb,
const gsi_char * ip,
unsigned short port );
RoutineRequired HeaderDistribution
ServerBrowserGetServerByIP<sb_serverbrowsing.h>SDKZIP

Return Value

Returns the Server if found, otherwise NULL;

Parameters

sb
[in] ServerBrowser object intialized with ServerBrowserNew.
ip
[in] The dotted IP address of the server e.g. "1.2.3.4"
port
[in] The query port of the server, in network byte order.

Section Reference: Gamespy Server Browsing SDK