#include <unix_buffer.H>
Public Member Functions | |
int | get_descriptor () const |
returns the attached socket descriptor | |
unix_io_stream (const std::string &host, const int port) | |
unix_io_stream (const connection_waiter &cw) | |
unix_io_stream (const int _fd, const int secs_timeout=75) | |
virtual | ~unix_io_stream () |
Protected Member Functions | |
virtual int | _get_descriptor () const |
Protected Attributes | |
unix_buffer | buf |
Definition at line 1240 of file unix_buffer.H.
unix_io_stream::unix_io_stream | ( | const std::string & | host, | |
const int | port | |||
) | [inline] |
host | string of symbolic/numerical internet address of host to connect | |
port | port number to connect |
Definition at line 1258 of file unix_buffer.H.
unix_io_stream::unix_io_stream | ( | const connection_waiter & | cw | ) | [inline, explicit] |
cw | a connection_waiter object, that returns a descriptor of the next incoming client connection request |
Definition at line 1268 of file unix_buffer.H.
unix_io_stream::unix_io_stream | ( | const int | _fd, | |
const int | secs_timeout = 75 | |||
) | [inline, explicit] |
_fd | descriptor of an already opened connection | |
secs_timeout | (optional) timeout in seconds before read/write operations may fail |
Definition at line 1278 of file unix_buffer.H.
virtual unix_io_stream::~unix_io_stream | ( | ) | [inline, virtual] |
Definition at line 1283 of file unix_buffer.H.
virtual int unix_io_stream::_get_descriptor | ( | ) | const [inline, protected, virtual] |
Implements Cprovide_descriptor_access.
Definition at line 1244 of file unix_buffer.H.
References buf, and unix_fd_buffer::get_descriptor().
int unix_io_stream::get_descriptor | ( | ) | const [inline] |
unix_buffer unix_io_stream::buf [protected] |