6 #ifndef __WVTIMESTREAM_H
7 #define __WVTIMESTREAM_H
9 #include "wvtimeutils.h"
45 virtual bool isok()
const;
51 const char *wstype()
const {
return "WvTimeStream"; }
55 #endif // __WVTIMESTREAM_H
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling ::select().
Based on (and interchangeable with) struct timeval.
virtual bool post_select(SelectInfo &si)
post_select() is called after ::select(), and returns true if this object is now ready.
WvTimeStream causes select() to be true after a configurable number of milliseconds.
void set_timer(time_t msec)
Every 'msec' milliseconds, select() will return true on this stream.
the data structure used by pre_select()/post_select() and internally by select().
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
virtual bool isok() const
return true if the stream is actually usable right now
virtual void execute()
The callback() function calls execute(), and then calls the user- specified callback if one is define...