ASSA::MaskSet Class Reference

#include <MaskSet.h>

Collaboration diagram for ASSA::MaskSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void reset ()
 Clear all bits in all sets.
void sync ()
 Resync internals after select() call.
void dump ()
 Write current state of MaskSet object to log file.

Public Attributes

FdSet m_rset
 Read fds set.
FdSet m_wset
 Write fds set.
FdSet m_eset
 Exception fds set.

Detailed Description

Definition at line 24 of file MaskSet.h.


Member Function Documentation

void ASSA::MaskSet::dump  )  [inline]
 

Write current state of MaskSet object to log file.

Definition at line 68 of file MaskSet.h.

References DL, ASSA::FdSet::dump_c_str(), m_eset, m_rset, m_wset, and ASSA::REACTTRACE.

Referenced by ASSA::Reactor::dispatch(), ASSA::Reactor::isAnyReady(), and ASSA::Reactor::waitForEvents().

00069 {
00070     DL((REACTTRACE,"+---------------------------\n"));
00071     DL((REACTTRACE,"| RD FDs set %s\n", m_rset.dump_c_str ().c_str ()));
00072     DL((REACTTRACE,"| WR FDs set %s\n", m_wset.dump_c_str ().c_str ()));
00073     DL((REACTTRACE,"| EX FDs set %s\n", m_eset.dump_c_str ().c_str ()));
00074     DL((REACTTRACE,"+---------------------------\n"));
00075 }

void ASSA::MaskSet::reset  )  [inline]
 

Clear all bits in all sets.

Definition at line 59 of file MaskSet.h.

References m_eset, m_rset, m_wset, and ASSA::FdSet::reset().

Referenced by ASSA::Reactor::waitForEvents().

00060 {
00061     m_rset.reset ();
00062     m_wset.reset ();
00063     m_eset.reset ();
00064 }

void ASSA::MaskSet::sync  )  [inline]
 

Resync internals after select() call.

Definition at line 49 of file MaskSet.h.

References m_eset, m_rset, m_wset, and ASSA::FdSet::sync().

Referenced by ASSA::Reactor::waitForEvents().

00050 {
00051     m_rset.sync ();
00052     m_wset.sync ();
00053     m_eset.sync ();
00054 }


Member Data Documentation

FdSet ASSA::MaskSet::m_eset
 

Exception fds set.

Definition at line 34 of file MaskSet.h.

Referenced by ASSA::Reactor::dispatch(), dump(), ASSA::Reactor::isAnyReady(), reset(), sync(), and ASSA::Reactor::waitForEvents().

FdSet ASSA::MaskSet::m_rset
 

Read fds set.

Definition at line 28 of file MaskSet.h.

Referenced by ASSA::Reactor::dispatch(), dump(), ASSA::Reactor::isAnyReady(), ASSA::Reactor::registerIOHandler(), ASSA::Reactor::removeHandler(), ASSA::Reactor::removeIOHandler(), reset(), sync(), and ASSA::Reactor::waitForEvents().

FdSet ASSA::MaskSet::m_wset
 

Write fds set.

Definition at line 31 of file MaskSet.h.

Referenced by ASSA::Reactor::dispatch(), dump(), ASSA::Reactor::isAnyReady(), reset(), sync(), and ASSA::Reactor::waitForEvents().


The documentation for this class was generated from the following file:
Generated on Sun Aug 13 15:08:20 2006 for libassa by  doxygen 1.4.6