peerQRAddErrorCallback
Callback when reporting a game, this callback is called if there was an error with server reporting.
- typedef void (*peerQRAddErrorCallback)(
- PEER peer,
- qr2_error_t error,
- gsi_char * errorString,
- void * param );
Routine | Required Header | Distribution |
---|---|---|
peerQRAddErrorCallback | <peer.h> | SDKZIP |
Parameters
- peer
- [in] Initialized peer object
- error
- [in] A Qr2 error code when reporting fails
- errorString
- [in] The error in string form
- param
- [in] Pointer to user data. This is optional and will be passed unmodified to the callback function.
Remarks
The peerQRAddErrorCallback function is called when an error is flagged while reporting to the server. This callback is called while reporting if there is an error reporting the server. To see the possible error codes, look for the qr2_error_t enumeration in qr2.h.
Unicode Mappings
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
peerQRAddErrorCallback | peerQRAddErrorCallbackA | peerQRAddErrorCallbackW |
peerQRAddErrorCallbackW and peerQRAddErrorCallbackA are UNICODE and ANSI mapped versions of peerQRAddErrorCallback. The arguments of peerQRAddErrorCallbackA are ANSI strings; those of peerQRAddErrorCallbackW are wide-character strings.
Section Reference: Gamespy Peer SDK