peerGetGroupID

GameSpy SDK

peerGetGroupID

Returns the current group ID set from peerJoinGroupRoom or peerSetGroupID.

intĀ peerGetGroupID(
PEER peer );
RoutineRequired HeaderDistribution
peerGetGroupID<peer.h>SDKZIP

Return Value

The current group ID, otherwise a zero is returned.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerGetGroupID function returns the current group id.Ā  This id may be set automatically when joining a room with peerJoinGroupRoom or manually using peerSetGroupID. The peer object in this function needs to be initialized and connected otherwise a zero is returned.

Section Reference: Gamespy Peer SDK