DWC_NdGetFileAsync

Syntax

#include <dwc.h>
BOOL DWC_NdGetFileAsync(DWCNdFileInfo *fileinfo,
                        char *buf,
                        unsigned int size);

Arguments

fileinfo Pointer to the file information for the download target.
buf Pointer to the buffer where downloaded data is written.
size Size of the buffer to which downloaded data is written. Specify a value equal to or greater than the size member of fileinfo.

Return Values

TRUE Success.
FALSE Failure. Use the DWC_GetLastErrorEx function to get error information.

Description

Starts file downloading.

This function fails if communication with the download server is already in progress.

The library does not implement timeouts, so make sure that the application implements timeout processing or allows cancellation as necessary.

See Also

DWC_NdInitAsync
DWC_NdProcess
DWC_GetLastErrorEx

Revision History

5.1 PR2
Deleted mention of "a minimum of 128 bytes" from the description of the size argument. Added a description of the necessity of a timeout process.

For the changelog prior to 5.1 PR2, click here.


CONFIDENTIAL