gpAuthBuddyRequest

GameSpy SDK

gpAuthBuddyRequest

This function authorizes a buddy request. It is called in response to the gpRecvBuddyRequest callback getting called.

GPResult gpAuthBuddyRequest(
GPConnection * connection,
GPProfile profile );
RoutineRequired HeaderDistribution
gpAuthBuddyRequest<gp.h>SDKZIP

Return Value

This function returns GP_NO_ERROR upon success. Otherwise a valid GPResult is returned.

Parameters

connection
[in] The connection on which to authorize the request.
profile
[in] The remote profile whose buddy request is being authorized.

Remarks

This function is used to authorize a buddy request received with the gpRecvBuddyRequest callback. It is used only to authorize. This function does not need to be called immediately after a request has been received, however the request will be lost as soon as the local profile is disconnected.
This function causes a status message to be sent to the remote profile.

Section Reference: Gamespy Presence SDK