DWCGHTTPProgressCallback

Syntax

#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 every 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 as returned by the DWC_GetGHTTPState function.
buf Receive data storage buffer.
len Size of the receive data.
bytesReceived Total number of received bytes.
totalSize Total size of the file. If unknown, the value is -1.
param Parameter for the callback specified by DWC_GetGHTTPDataEx.

Return Values

None.

See Also

DWC_GetGHTTPDataEx
DWC_GetGHTTPState

Revision History

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


CONFIDENTIAL