gpIsConnected

GameSpy SDK

gpIsConnected

Determine whether the GPConnection object has established a connection with the server.

GPResult gpIsConnected(
GPConnection * connection,
GPEnum * connected );
RoutineRequired HeaderDistribution
gpIsConnected<gp.h>SDKZIP

Return Value

This function returns GP_NO_ERROR upon success. Otherwise a valid GPResult is returned.

Parameters

connection
[in] A GP connection interface.
connected
[out] The connected state. GP_CONNECTED or GP_NOT_CONNECTED. (See remarks.)

Remarks

If the connection parameter has not been initialized with gpInitialize, the connected parameter will be invalid and the return value will be GP_PARAMETER_ERROR.

Section Reference: Gamespy Presence SDK