gpAcceptTransfer
This function is used to accept a file transfer request.
- GPResult gpAcceptTransfer(
- GPConnection * connection,
- GPTransfer transfer,
- const gsi_char * message );
Routine | Required Header | Distribution |
---|---|---|
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
Routine | GSI_UNICODE Not Defined | GSI_UNICODE Defined |
---|---|---|
gpAcceptTransfer | gpAcceptTransferA | gpAcceptTransferW |
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