-
class
Dispatcher
(Return to index)
-
wait on multiple file descriptors until a condition occurs
Type:
Derived Classes
Include file:
Description: man page
Public:
-
Dispatcher ()
- virtual void
dispatch ()
- virtual boolean
dispatch (long& sec, long& usec)
-
enum DispatcherMask
{ ReadMask, WriteMask, ExceptMask }
- virtual IOHandler*
handler (int fd, DispatcherMask) const
- static Dispatcher&
instance ()
- static void
instance (Dispatcher*)
- virtual void
link (int fd, DispatcherMask, IOHandler*)
- virtual boolean
setReady (int fd, DispatcherMask)
- virtual void
startChild (int pid, IOHandler*)
- virtual void
startTimer (long sec, long usec, IOHandler*)
- virtual void
stopChild (IOHandler*)
- virtual void
stopTimer (IOHandler*)
- virtual void
unlink (int fd)
- virtual
~Dispatcher ()
Protected:
- ChildQueue*
_cqueue
- FdMask*
_emask
- FdMask*
_emaskready
- IOHandler**
_etable
- int
_nfds
- TimerQueue*
_queue
- FdMask*
_rmask
- FdMask*
_rmaskready
- IOHandler**
_rtable
- FdMask*
_wmask
- FdMask*
_wmaskready
- IOHandler**
_wtable
- virtual boolean
anyReady () const
- virtual void
attach (int fd, DispatcherMask, IOHandler*)
- virtual timeval*
calculateTimeout (timeval*) const
- virtual void
checkConnections ()
- virtual void
detach (int fd)
- virtual boolean
dispatch (timeval*)
- virtual int
fillInReady (FdMask&, FdMask&, FdMask&)
- virtual boolean
handleError ()
- virtual void
notify (int, FdMask&, FdMask&, FdMask&)
- virtual int
waitFor (FdMask&, FdMask&, FdMask&, timeval*)
(more documentation)