MoSync 3.3
MAUtil::HttpConnectionListener Class Reference

A listener for events from the HttpConnection class. More...

#include <MAUtil/Connection.h>

Inheritance diagram for MAUtil::HttpConnectionListener:
MAUtil::ConnectionListener MAUtil::BuffDownloader MAUtil::Downloader Wormhole::HighLevelHttpConnection MAUtil::AudioDownloader MAUtil::ImageDownloader Wormhole::HighLevelBinaryDownloader Wormhole::HighLevelImageDownloader Wormhole::HighLevelTextDownloader

List of all members.

Public Member Functions

virtual void httpFinished (HttpConnection *http, int result)=0
virtual void connectFinished (Connection *conn, int result) __attribute__((noreturn))
virtual void connRecvFinished (Connection *conn, int result) __attribute__((noreturn))
virtual void connWriteFinished (Connection *conn, int result) __attribute__((noreturn))
virtual void connReadFinished (Connection *conn, int result) __attribute__((noreturn))

Detailed Description

A listener for events from the HttpConnection class.


Member Function Documentation

virtual void MAUtil::HttpConnectionListener::httpFinished ( HttpConnection http,
int  result 
) [pure virtual]

Called when a finish operation is done.

Parameters:
httpThe HttpConnection that ran the operation.
resultThe HTTP response code (eg 200 or 404) on success, or a CONNERR code < 0 on failure.

Implemented in MAUtil::AudioDownloader, MAUtil::Downloader, Wormhole::HighLevelHttpConnection, and MAUtil::BuffDownloader.

virtual void MAUtil::ConnectionListener::connectFinished ( Connection conn,
int  result 
) [virtual, inherited]

Called when a connect operation finishes.

Parameters:
connThe Connection that ran the operation.
result> 0 on success, or a CONNERR code < 0 on failure.
virtual void MAUtil::ConnectionListener::connRecvFinished ( Connection conn,
int  result 
) [virtual, inherited]

Called when a recv operation finishes.

Parameters:
connThe Connection that ran the operation.
resultThe number of bytes read on success, or a CONNERR code < 0 on failure.

Reimplemented in MAUtil::Downloader, Wormhole::HighLevelHttpConnection, and MAUtil::BuffDownloader.

virtual void MAUtil::ConnectionListener::connWriteFinished ( Connection conn,
int  result 
) [virtual, inherited]

Called when a write operation finishes.

Parameters:
connThe Connection that ran the operation.
result> 0 on success, or a CONNERR code < 0 on failure.

Reimplemented in Wormhole::HighLevelHttpConnection.

virtual void MAUtil::ConnectionListener::connReadFinished ( Connection conn,
int  result 
) [virtual, inherited]

Called when a read operation finishes.

Parameters:
connThe Connection that ran the operation.
result> 0 on success, or a CONNERR code < 0 on failure.

Reimplemented in Wormhole::HighLevelHttpConnection.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines