peerInitialize
Initialize the peer SDK.
- PEER peerInitialize(
- PEERCallbacks * callbacks );
Routine | Required Header | Distribution |
---|---|---|
peerInitialize | <peer.h> | SDKZIP |
Return Value
Initialized peer sdk.
Parameters
- callbacks
- [in] PEERCallbacks structure filled with appropriate callbacks.
Remarks
The peerInitialize function creates a peer object. This object is valid until it is passed to peerShutdown(). After initialization, the next two steps will usually be to set the title with peerSetTitle() then connect with peerConnect(). It is valid to have multiple Peer objects allocated at any given time, however this is usually not needed.
Section Reference: Gamespy Peer SDK