41 DL ((
REACT,
"Clearing fd=%d\n", fd_));
44 DL ((
REACT,
"Not set! - ignoring.\n"));
49 if (FD_ISSET (fd_,
this)) {
50 DL ((
REACT,
"Woop - an error! FD_CLR failed!\n"));
59 DL ((
REACT,
"fd=%d found and erased\n", fd_));
63 DL ((
REACT,
"fd=%d not found in m_actfds list!\n", fd_));
92 ::memset(
this, 0,
sizeof (fd_set));
118 std::ostringstream report;
120 report <<
" enabled=" <<
numSet ();
123 if (this->fd_count) {
126 for (
int i=0; i < this->fd_count; i++) {
127 report <<
" " << this->fd_array[i];
135 report <<
" " << (
u_int)*iter;
141 return (report.str ());
An abstraction to message logging facility.
#define DL(X)
A macro for writing debug message to the Logger.
std::list< u_int >::iterator ActiveFDs_Iter
std::list< u_int > m_actfds
void reset()
Reset every bit in the set (OFF).
bool setFd(handler_t fd_)
Set flag (ON) for the argument fd.
void sync()
Sync internals after used by select(3C)
std::string dump_c_str()
Return object state dump as an ASCII string.
int maxInSet()
Find out the highest file descriptor in the set.
bool isSet(handler_t fd_)
Test whether fd's flag is on.
bool clear(handler_t fd_)
Clear flag (OFF) for the argument fd.
int numSet()
Determine how many bits are set (ON) in the set.
@ REACT
Class Reactor/PrioriyQueue messages
Socket & ends(Socket &os_)
ends manipulator.