MoSync 3.3
MAUtil::ConnectionListener Class Reference

A listener for events from the Connection class. All the default implementations call maPanic(). More...

#include <MAUtil/Connection.h>

Inheritance diagram for MAUtil::ConnectionListener:
MAUtil::HttpConnectionListener 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 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 Connection class. All the default implementations call maPanic().


Member Function Documentation

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

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]

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]

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]

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