11 int main(
int argc,
char **argv)
17 const char **av = (argc < 2) ? _av : (
const char **)(argv + 1);
20 WvPipe p(av[0], av,
true,
false,
false);
23 p.autoforward(*wvcon);
25 p.write(
"test string\r\n");
27 while (p.isok() && wvcon->
isok())
35 p.flush_then_close(50000);
44 log(WvLog::Notice,
"Exited (return code == %s)\n",
Implementation of a WvPipe stream.
bool select(time_t msec_timeout)
Return true if any of the requested features are true on the stream.
virtual void callback()
if the stream has a callback function defined, call it now.
A WvLog stream accepts log messages from applications and forwards them to all registered WvLogRcv's.
void autoforward(WvStream &s)
set the callback function for this stream to an internal routine that auto-forwards all incoming stre...
virtual bool isok() const
return true if the stream is actually usable right now