SCCreateSessionCallback

GameSpy SDK

SCCreateSessionCallback

Called when scCreateSession has completed.

typedef void (*SCCreateSessionCallback)(
const SCInterfacePtr theInterface,
GHTTPResult theHttpResult,
SCResult theResult,
const void * theUserData );
RoutineRequired HeaderDistribution
SCCreateSessionCallback<sc.h>SDKZIP

Parameters

theInterface
[in] the pointer to the SC Interface object. The game usually has copy of this also.
theHttpResult
[in] Http result from creating a session
theResult
[in] SC Result telling the application what happened when creating a session
theUserData
[in] constant pointer to user data

Remarks

Called when a game session is created. The results will determine if the session was sucessfully created. If there were any errors, theResult will be set to the specific error code. Otherwise theResult will be set to SCResult_NO_ERROR. Please see SCResult for error codes.

Section Reference: Gamespy Competition SDK

See Also: scCreateSession, SCResult