sakeGetFileResultFromHeaders

GameSpy SDK

sakeGetFileResultFromHeaders

Checks the headers from the uploaded file to see the result.

gsi_bool sakeGetFileResultFromHeaders(
const char * headers,
SAKEFileResult * result );
RoutineRequired HeaderDistribution
sakeGetFileResultFromHeaders<sake.h>SDKZIP

Return Value

gsi_true if it was able to parse the result successfully, gsi_false otherwise

Parameters

headers
[in] The headers to parse for the fileid. Can obtain these by calling ghttpGetHeaders.
result
[ref] Reference to the result as obtained in the headers.

Remarks

You can also check the headers manually for the “Sake-File-Result” header. The value stored in the header is an integer, the possible values of which are enumerated in SAKEFileResult. SAKEFileResult_SUCCESS means that the file was uploaded successfully, while any other value indicates that there was an error uploading the file.

Section Reference: Gamespy Sake SDK

See Also: SAKEFileResult