scGetSessionId

GameSpy SDK

scGetSessionId

Used to obtain the session ID for the current game session.

const char * scGetSessionId(
const SCInterfacePtr theInterface );
RoutineRequired HeaderDistribution
scGetSessionId<sc.h>SDKZIP

Return Value

Parameters

theInterface
[in] A valid SC Inteface Object

Remarks

The session ID indentifies a single game session happening between players. After the host creates a session, this function can be called to obtain the session ID. The host can then send the session ID to all other players participating in the game session.