#include <unix_buffer.H>


Public Member Functions | |
| Cpoll (const int _fd=0) | |
| create an Cpoll abstraction layer (attached to a socket descriptor) | |
| template<class T> | |
| Cpoll (const T &obj) | |
create an Cpoll abstraction layer attached to an object that provides get_descriptor() | |
| virtual | ~Cpoll () |
| void | attach (const int _fd) |
| attach it to a socket descriptor | |
| template<class T> | |
| void | attach (const T &obj) |
Protected Member Functions | |
| virtual int | _get_descriptor () const |
Private Attributes | |
| int | fd |
poll - wait for some event on a file descriptor; refer manpage: Linux Programmers's Manual, POLL(2)
This class wraps the linux system call "poll" and provides methods to test whether a stream is readable, writable and connected/alive.
Definition at line 421 of file unix_buffer.H.
| Cpoll::Cpoll | ( | const int | _fd = 0 |
) | [inline, explicit] |
create an Cpoll abstraction layer (attached to a socket descriptor)
Definition at line 431 of file unix_buffer.H.
| Cpoll::Cpoll | ( | const T & | obj | ) | [inline, explicit] |
create an Cpoll abstraction layer attached to an object that provides get_descriptor()
Definition at line 434 of file unix_buffer.H.
| virtual Cpoll::~Cpoll | ( | ) | [inline, virtual] |
Definition at line 436 of file unix_buffer.H.
| virtual int Cpoll::_get_descriptor | ( | ) | const [inline, protected, virtual] |
| void Cpoll::attach | ( | const int | _fd | ) | [inline] |
| void Cpoll::attach | ( | const T & | obj | ) | [inline] |
attach it to an object that provides get_descriptor()
| obj | an object that handles a network connection and provides the attached socket descriptor through get_descriptor() |
Definition at line 446 of file unix_buffer.H.
int Cpoll::fd [private] |
1.5.4