peerGetChat

GameSpy SDK

peerGetChat

Returns the chat sdk object.

CHAT peerGetChat(
PEER peer );
RoutineRequired HeaderDistribution
peerGetChat<peer.h>SDKZIP

Return Value

The chat sdk object being used by the peer sdk.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerGetChat function returns the chat sdk object being used by the peer sdk.  The peer sdk wraps the chat sdk. An application can use this function to get a reference to the chat object, which allows it to directly access some of the Chat SDK’s lower level functionality. For example, this could be used to join a separate chat channel, outside of the scope of Peer. This function will fail if Peer is not yet connected to the chat server. The chat object will become invalid as soon as the peer object is disconnected.

Section Reference: Gamespy Peer SDK