Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages   Examples  

fpoller::basic_poller Class Template Reference

#include <poller.h>

List of all members.

Public Methods

 basic_poller ()
void add (int fd, short interest, callback *cb)
void remove (int fd, short interest)
void remove (int fd)
int poll (int timeout)


Detailed Description

template<typename Delegate>
class fpoller::basic_poller< Delegate >

This is the main class in the library. It delegates all logic to its delegate_ member. It is generally referred to by supplied typedef -- poller, fast_poller, or traditional_poller.

Definition at line 41 of file poller.h.


Constructor & Destructor Documentation

template<typename Delegate>
fpoller::basic_poller< Delegate >::basic_poller [inline]
 

Default constructor

Definition at line 46 of file poller.h.


Member Function Documentation

template<typename Delegate>
void fpoller::basic_poller< Delegate >::add int fd,
short interest,
callback * cb
[inline]
 

Registers a callback for a file descriptor for a particular interest (READ or WRITE)

Definition at line 48 of file poller.h.

template<typename Delegate>
int fpoller::basic_poller< Delegate >::poll int timeout [inline]
 

Checks for ready file descriptors and executes the callbacks associated with them. Will wait for timeout milliseconds or until some descriptora are ready

Definition at line 55 of file poller.h.

template<typename Delegate>
void fpoller::basic_poller< Delegate >::remove int fd [inline]
 

Removes a callback for a file descriptor for both READ and WRITE

Definition at line 52 of file poller.h.

template<typename Delegate>
void fpoller::basic_poller< Delegate >::remove int fd,
short interest
[inline]
 

Removes a callback for a file descriptor for a particular interest (READ or WRITE)

Definition at line 50 of file poller.h.

Referenced by remove().


The documentation for this class was generated from the following file:
Generated at Wed Oct 16 16:02:39 2002 for fpoller by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001