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

fpoller::accept_callback Class Template Reference

#include <callbacks.h>

Inheritance diagram for fpoller::accept_callback::

fpoller::callback List of all members.

Public Methods

 accept_callback (Poller *p, int i=READ)
ret_val operator() (int fd)

Detailed Description

template<typename CallBack, typename Poller = poller, typename PeerPolicy = accepter::discard_peer>
class fpoller::accept_callback< CallBack, Poller, PeerPolicy >

Convenience class for accept callbacks. Parameterized over callback that new connections should call when ready, and the type of poller with which it is to be used. The default, poller, is almost always correct. PeerPolicy determines what is done with peer information gleaned from accept().
Examples:

example.cc.

Definition at line 247 of file callbacks.h.


Member Function Documentation

template<typename CallBack, typename Poller = poller, typename PeerPolicy = accepter::discard_peer>
ret_val fpoller::accept_callback< CallBack, Poller, PeerPolicy >::operator() int fd [inline, virtual]
 

Accepts new connections, sets them to non-blocking and associates them with their initial callback.

Reimplemented from fpoller::callback.

Definition at line 254 of file callbacks.h.


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