6#ifndef __WVTIMESTREAM_H
7#define __WVTIMESTREAM_H
9#include "wvtimeutils.h"
51 const char *wstype()
const {
return "WvTimeStream"; }
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
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.
virtual bool post_select(SelectInfo &si)
post_select() is called after select(), and returns true if this object is now ready.
virtual void pre_select(SelectInfo &si)
pre_select() sets up for eventually calling select().
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...
Based on (and interchangeable with) struct timeval.
the data structure used by pre_select()/post_select() and internally by select().