qr2_serverkeycallback_t
One of the callbacks provided to qr2_init, called when a client requests information about a specific server key.
- typedef void (*qr2_serverkeycallback_t)(
- int keyid,
- int index,
- qr2_buffer_t outbuf,
- void * userdata );
Routine | Required Header | Distribution |
---|---|---|
qr2_serverkeycallback_t | <qr2.h> | SDKZIP |
Parameters
- keyid
- [in] The key being requested.
- index
- [in] The 0-based index of the player or team being requested.
- outbuf
- [in] The destination buffer for the value information. Use qr2_buffer_add to report the value.
- userdata
- [in] The same userdata that was passed into qr2_init.
Remarks
If you don't have a value for the provided keyid, you should add an empty ("") string to the buffer.
Section Reference: Gamespy Query and Reporting 2 SDK
See Also: qr2_init, qr2_buffer_add