#include <channel.h>

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 () |
| virtual connection::~connection | ( | ) | [inline, virtual] |
| 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.
Visit the project page on