#include <dwc.h>
typedef void (*DWCGHTTPProgressCallback)( DWCGHTTPState state,
const char* buf,
int len,
int bytesReceived,
int totalSize,
void* param);
This function notifies the user of the current status of the GHTTP library after DWC_GetGHTTPDataEx
has been called. This function is called each time the download sequence status changes such as when sending requests or receiving data.
This callback function can be set using DWC_GetGHTTPDataEx
.
state |
GHTTP communication state Returns the same value returned by the DWC_GetGHTTPState function. |
buf |
Receive data storage buffer. |
len |
Size of the receive data. |
bytesReceived |
Total number of received bytes. |
totalSize |
The file's total size. -1 if unknown. |
param |
Parameter for the callback specified by DWC_GetGHTTPDataEx . |
None.
DWC_GetGHTTPDataEx, DWC_GetGHTTPState
12/16/2005 Revised the function description.
10/27/2005 Initial version.