peerAutoMatchRateCallback

GameSpy SDK

peerAutoMatchRateCallback

Called when rating the server for determining the best match.

typedef int (*peerAutoMatchRateCallback)(
PEER peer,
SBServer match,
void * param );
RoutineRequired HeaderDistribution
peerAutoMatchRateCallback<peer.h>SDKZIP

Return Value

Parameters

peer
[in] Initialized peer object
match
[in] A possible match for a Server
param
[in] Pointer to user data. This is optional and will be passed unmodified to the callback function.

Remarks

The peerAutoMatchRateCallback function is called one or more times for each game found. This allows the application to assign a rating to each game, and is used to determine the best fit for the user. The rating value should be calculated based on correlation between user preferred settings and actual game settings.

Section Reference: Gamespy Peer SDK