Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CHTTPListener Class Reference

An HTTP callback object. More...

#include <http.h>

List of all members.

Public Member Functions

virtual void OnConnection (CHTTP *)
 Called when a connection has been made.
virtual void OnConnectionClosed (CHTTP *)
 Called when a connection has been closed.
virtual void OnError (CHTTP *)
 Called when an error is encountered.
virtual void OnPageReceived (CHTTP *)
 Called when an entire buffered page is received.
virtual void OnChunkReceived (CHTTP *, int)
 Called when a chunk of data is receveid.
virtual bool OnRedirect (CHTTP *)
 Called when a redirect notification is received.
virtual void OnRequestCompleted (CHTTP *)
 Called when a request is completed. After this point, it is safe to make another request using the same object.


Detailed Description

An HTTP callback object.


Member Function Documentation

virtual void OW32::CHTTPListener::OnChunkReceived CHTTP ,
int 
[inline, virtual]
 

Called when a chunk of data is receveid.

Parameters:
http The request object that the notification is from.
currentLength The amount of data that is buffered.

virtual void OW32::CHTTPListener::OnConnection CHTTP  )  [inline, virtual]
 

Called when a connection has been made.

Parameters:
http The request object that the notification is from.

virtual void OW32::CHTTPListener::OnConnectionClosed CHTTP  )  [inline, virtual]
 

Called when a connection has been closed.

Parameters:
http The request object that the notification is from.

virtual void OW32::CHTTPListener::OnError CHTTP  )  [inline, virtual]
 

Called when an error is encountered.

Parameters:
http The request object that the notification is from.

virtual void OW32::CHTTPListener::OnPageReceived CHTTP  )  [inline, virtual]
 

Called when an entire buffered page is received.

Parameters:
http The request object that the notification is from.

virtual bool OW32::CHTTPListener::OnRedirect CHTTP  )  [inline, virtual]
 

Called when a redirect notification is received.

Returns:
true if the redirect is handled, false for default handling.
Parameters:
http The request object that the notification is from.
Only called when OPT_FOLLOW_REDIRECT is set. `default handling' implies that the request library will try to fetch the page indicated by the redirect, connecting to the new server or using the new protocol that the `Location:' header specifies.

virtual void OW32::CHTTPListener::OnRequestCompleted CHTTP  )  [inline, virtual]
 

Called when a request is completed. After this point, it is safe to make another request using the same object.

Parameters:
http The request object that the notification is from.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:24 2005 for OW32 by  doxygen 1.3.9.1