libassa  3.5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes
ASSA::MaskSet Class Reference

#include <MaskSet.h>

List of all members.

Public Member Functions

void reset ()
 Clear all bits in all sets.
void sync ()
 Resync internals after select() call.
int max_fd ()
 Return maximum value of the file descriptor in the Set.
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 ( void  )
inline

Write current state of MaskSet object to log file.

Definition at line 80 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(), ASSA::Reactor::registerIOHandler(), ASSA::Reactor::removeHandler(), ASSA::Reactor::removeIOHandler(), and ASSA::Reactor::waitForEvents().

{
DL((REACTTRACE,"+---------------------------\n"));
DL((REACTTRACE,"| RD FDs set %s\n", m_rset.dump_c_str ().c_str ()));
DL((REACTTRACE,"| WR FDs set %s\n", m_wset.dump_c_str ().c_str ()));
DL((REACTTRACE,"| EX FDs set %s\n", m_eset.dump_c_str ().c_str ()));
DL((REACTTRACE,"+---------------------------\n"));
}
int ASSA::MaskSet::max_fd ( )
inline

Return maximum value of the file descriptor in the Set.

Definition at line 71 of file MaskSet.h.

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

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

{
return (std::max (m_rset.maxInSet (),
std::max (m_wset.maxInSet (),
}
void ASSA::MaskSet::reset ( )
inline

Clear all bits in all sets.

Definition at line 62 of file MaskSet.h.

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

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

{
}
void ASSA::MaskSet::sync ( )
inline

Resync internals after select() call.

Definition at line 52 of file MaskSet.h.

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

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

{
}

Member Data Documentation

FdSet ASSA::MaskSet::m_eset
FdSet ASSA::MaskSet::m_rset
FdSet ASSA::MaskSet::m_wset

The documentation for this class was generated from the following file: