gpGetTransferSize

GameSpy SDK

gpGetTransferSize

This function is used to get the total size of the transfer, in bytes.

GPResult gpGetTransferSize(
GPConnection * connection,
GPTransfer transfer,
int * size );
RoutineRequired HeaderDistribution
gpGetTransferSize<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.
size
[out] The size of the transfer, in bytes, will be stored here.

Remarks

This function is used to determine the total size of a file transfer. This is the sum of the sizes of all the files being transferred. When a file is transferred, its size may be different than the size originally reported for the file. This can cause the total size of the transfer to change during the course of the transfer.

Section Reference: Gamespy Presence SDK