gpAcceptTransfer

GameSpy SDK

gpAcceptTransfer

This function is used to accept a file transfer request.

GPResult gpAcceptTransfer(
GPConnection * connection,
GPTransfer transfer,
const gsi_char * message );
RoutineRequired HeaderDistribution
gpAcceptTransfer<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 accept the transfer.
transfer
[in] The transfer passed along with the GP_TRANSFER_SEND_REQUEST.
message
[in] An optional message to send along with the accept.

Remarks

This function is used to accept an incoming files request. This will initiate the transfer from the remote profile to the local profile. When done with the transfer, the transfer should be freed with a call to gpFreeTransfer.

Unicode Mappings

RoutineGSI_UNICODE Not DefinedGSI_UNICODE Defined
gpAcceptTransfergpAcceptTransferAgpAcceptTransferW

gpAcceptTransferW and gpAcceptTransferA are UNICODE and ANSI mapped versions of gpAcceptTransfer. The arguments of gpAcceptTransferA are ANSI strings; those of gpAcceptTransferW are wide-character strings.

Section Reference: Gamespy Presence SDK

See Also: gpRejectTransfer, gpSendFiles