unix_io_stream Class Reference

a simple network connection stream More...

#include <unix_buffer.H>

Inheritance diagram for unix_io_stream:

Inheritance graph
[legend]
Collaboration diagram for unix_io_stream:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

a simple network connection stream

Definition at line 1240 of file unix_buffer.H.


Constructor & Destructor Documentation

unix_io_stream::unix_io_stream ( const std::string host,
const int  port 
) [inline]

Parameters:
host string of symbolic/numerical internet address of host to connect
port port number to connect
A tcp based network connection will be established and provided as stream.

Definition at line 1258 of file unix_buffer.H.

unix_io_stream::unix_io_stream ( const connection_waiter cw  )  [inline, explicit]

Parameters:
cw a connection_waiter object, that returns a descriptor of the next incoming client connection request
Remarks:
connection will automatically be closed on destruction

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]

Parameters:
_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.


Member Function Documentation

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().

Here is the call graph for this function:

int unix_io_stream::get_descriptor (  )  const [inline]

returns the attached socket descriptor

Definition at line 1249 of file unix_buffer.H.


Member Data Documentation

unix_buffer unix_io_stream::buf [protected]

Definition at line 1243 of file unix_buffer.H.

Referenced by _get_descriptor().


The documentation for this class was generated from the following file:
Generated on Wed Nov 7 23:32:24 2007 for Qsieve by  doxygen 1.5.4