qr2_serverkeycallback_t

GameSpy SDK

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 );
RoutineRequired HeaderDistribution
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.