CMS 3D CMS Logo

lat::IOSelectSelect Class Reference

Implementation of IOSelectMethod using select(). More...

#include <Iguana/Utilities/src/iobase/IOSelectSelect.h>

Inheritance diagram for lat::IOSelectSelect:

lat::IOSelectFdMap lat::IOSelectMethod

List of all members.

Public Member Functions

virtual void andMask (IOFD fd, unsigned value)
virtual void attach (const IOSelectRequest &req)
virtual void clear (void)
virtual void detach (const IOSelectRequest &req)
 IOSelectSelect (void)
virtual IOFD next (IOSelectEvent &event, IOSelectCB &cb)
virtual void orMask (IOFD fd, unsigned value)
virtual void setMask (IOFD fd, unsigned value)
virtual bool wait (long msecs)
 ~IOSelectSelect (void)

Private Attributes

IOFD m_current
 The last file descriptor inspected by next().
fd_set m_e
 File descriptors registered for urgent events.
fd_set m_estatus
 File descriptors ready with urgent data at last wait().
IOFD m_maxfd
 The highest file descriptor seen so far.
int m_nready
 Number of file descriptors left ready in m_rlast, m_wlast and m_elast in total.
fd_set m_r
 File descriptors registered for read or accept events.
fd_set m_rstatus
 File descriptors ready for read or accepted at last wait().
fd_set m_w
 File descriptors registered for write or connect events.
fd_set m_wstatus
 File descriptors ready for write or connected at last wait().


Detailed Description

Implementation of IOSelectMethod using select().

Definition at line 36 of file IOSelectSelect.h.


Constructor & Destructor Documentation

lat::IOSelectSelect::IOSelectSelect ( void   ) 

lat::IOSelectSelect::~IOSelectSelect ( void   ) 


Member Function Documentation

virtual void lat::IOSelectSelect::andMask ( IOFD  fd,
unsigned  value 
) [virtual]

Implements lat::IOSelectMethod.

virtual void lat::IOSelectSelect::attach ( const IOSelectRequest req  )  [virtual]

Implements lat::IOSelectMethod.

virtual void lat::IOSelectSelect::clear ( void   )  [virtual]

Implements lat::IOSelectMethod.

virtual void lat::IOSelectSelect::detach ( const IOSelectRequest req  )  [virtual]

Implements lat::IOSelectMethod.

virtual IOFD lat::IOSelectSelect::next ( IOSelectEvent event,
IOSelectCB cb 
) [virtual]

Implements lat::IOSelectMethod.

virtual void lat::IOSelectSelect::orMask ( IOFD  fd,
unsigned  value 
) [virtual]

Implements lat::IOSelectMethod.

virtual void lat::IOSelectSelect::setMask ( IOFD  fd,
unsigned  value 
) [virtual]

Implements lat::IOSelectMethod.

virtual bool lat::IOSelectSelect::wait ( long  msecs  )  [virtual]

Implements lat::IOSelectMethod.


Member Data Documentation

IOFD lat::IOSelectSelect::m_current [private]

The last file descriptor inspected by next().

Definition at line 61 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_e [private]

File descriptors registered for urgent events.

Definition at line 75 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_estatus [private]

File descriptors ready with urgent data at last wait().

Definition at line 84 of file IOSelectSelect.h.

IOFD lat::IOSelectSelect::m_maxfd [private]

The highest file descriptor seen so far.

Definition at line 58 of file IOSelectSelect.h.

int lat::IOSelectSelect::m_nready [private]

Number of file descriptors left ready in m_rlast, m_wlast and m_elast in total.

Initialised by wait() and decremented in next().

Definition at line 66 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_r [private]

File descriptors registered for read or accept events.

Definition at line 69 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_rstatus [private]

File descriptors ready for read or accepted at last wait().

Definition at line 78 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_w [private]

File descriptors registered for write or connect events.

Definition at line 72 of file IOSelectSelect.h.

fd_set lat::IOSelectSelect::m_wstatus [private]

File descriptors ready for write or connected at last wait().

Definition at line 81 of file IOSelectSelect.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:48:26 2009 for CMSSW by  doxygen 1.5.4