7 #include "wvtimeoutstream.h" 11 WvLog log(
"timeout", WvLog::Info);
13 void timeout(
WvStream &s,
void *userdata)
17 log(
"Fire %s\n", count);
23 t.setcallback(timeout, NULL);
25 for (
int i = 0; i < 3 && t.isok(); i++)
Unified support for streams, that is, sequences of bytes that may or may not be ready for read/write ...
WvTimeoutStream is a stream that becomes !isok() after a configurable number of milliseconds.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's...