Conexus::FileDescriptor Class Reference

#include <conexus/filedescriptor.h>

Inheritance diagram for Conexus::FileDescriptor:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class is the top level object for all subclasses performing I/O (Input/Output) operations via file descriptors (which in Linux/Unix/POSIX can be used for almost all I/O).

Author:
Rick L Vinyard Jr


Public Member Functions

 FileDescriptor (int fd=-1, bool close_on_destruction=true)
virtual int fd () throw ()
 Base class method returning the raw file descriptor.
virtual void close (bool force=false) throw (close_error)
 Closes the Endpoint object by closing the member file descriptor.
virtual const std::string & object_type ()

Protected Member Functions

virtual void read_thread_main ()

Protected Attributes

int m_fd


Member Function Documentation

void Conexus::FileDescriptor::close bool  force = false  )  throw (close_error) [virtual]
 

Closes the Endpoint object by closing the member file descriptor.

If the object is already closed will return without attempting to close.

Implements Conexus::Endpoint.

Reimplemented in Conexus::Socket, and Conexus::TTY.

int Conexus::FileDescriptor::fd  )  throw () [virtual]
 

Base class method returning the raw file descriptor.

This class is also available as the "fd" property.


The documentation for this class was generated from the following files:
Generated on Sat Aug 26 17:34:57 2006 by  doxygen 1.4.6