connection Class Reference

Functions on a specific type of connection. More...

#include <channel.h>

Inheritance diagram for connection:

debug_conn file_conn socket_conn tls_conn

List of all members.

Public Member Functions

virtual int read (char *buffer, size length)=0
 Function to read data, return -1 on error or bytes.
virtual int write (const char *buffer, size length)=0
 Function to write data, return -1 on error or bytes.
virtual void close ()=0
 Function to close the current socket/file.
virtual size length ()=0
 Length of the file, allways -1 on sockets.
virtual ~connection ()


Detailed Description

Functions on a specific type of connection.

Constructor & Destructor Documentation

virtual connection::~connection (  )  [inline, virtual]


Member Function Documentation

virtual int connection::read ( char *  buffer,
size  length 
) [pure virtual]

Function to read data, return -1 on error or bytes.

Implemented in debug_conn, file_conn, socket_conn, and tls_conn.

virtual int connection::write ( const char *  buffer,
size  length 
) [pure virtual]

Function to write data, return -1 on error or bytes.

Implemented in debug_conn, file_conn, socket_conn, and tls_conn.

virtual void connection::close (  )  [pure virtual]

Function to close the current socket/file.

Implemented in debug_conn, file_conn, socket_conn, and tls_conn.

virtual size connection::length (  )  [pure virtual]

Length of the file, allways -1 on sockets.

Implemented in debug_conn, file_conn, socket_conn, and tls_conn.


The documentation for this class was generated from the following file:

Generated on Tue Jan 1 17:30:01 2008 for connection Class Reference by  doxygen   Visit the project page on SourceForge.net Logo