DWCGHTTPProgressCallback

C Specification

#include <dwc.h>

typedef void (*DWCGHTTPProgressCallback)( DWCGHTTPState state, 
                                          const char* buf, 
                                          int   len, 
                                          int   bytesReceived, 
                                          int   totalSize, 
                                          void* param);

Description

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.

Arguments

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.

Return Values

None.

See Also

DWC_GetGHTTPDataEx, DWC_GetGHTTPState

Revision History

12/16/2005 Revised the function description.
10/27/2005 Initial version.