gpGetTransferSide

GameSpy SDK

gpGetTransferSide

This function is used to get which side of the transfer the local profile is on (sending or receiving).

GPResult gpGetTransferSide(
GPConnection * connection,
GPTransfer transfer,
GPEnum * side );
RoutineRequired HeaderDistribution
gpGetTransferSide<gp.h>SDKZIP

Return Value

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

Parameters

connection
[in] A GP connection interface.
transfer
[in] A pointer to a GPTransfer object.
side
[out] The side is stored here. This will be either GP_TRANSFER_SENDER or GP_TRANSFER_RECEIVER

Remarks

This function is used to determine if the local profile is the sender or receiver for this transfer. This is often useful inside of the gpTransferCallback when dealing with a message that both the sender and receiver may get, such as GP_FILE_END.

Section Reference: Gamespy Presence SDK