WvStreams
Docs
sgmlmanual
egfiles
wvstreamex5.cc
1
/*
2
* A WvStream example.
3
*
4
* Some text about this example...
5
*/
6
7
#include <wvstream.h>
8
9
int
main()
10
{
11
wvcon->
autoforward
(*wvcon);
12
13
while
(wvcon->
isok
())
14
{
15
if
(wvcon->
select
(-1))
16
wvcon->
callback
();
17
}
18
}
WvStream::select
bool select(time_t msec_timeout)
Return true if any of the requested features are true on the stream.
Definition:
wvstream.h:376
WvStream::callback
virtual void callback()
if the stream has a callback function defined, call it now.
Definition:
wvstream.cc:401
WvStream::autoforward
void autoforward(WvStream &s)
set the callback function for this stream to an internal routine that auto-forwards all incoming stre...
Definition:
wvstream.cc:362
WvStream::isok
virtual bool isok() const
return true if the stream is actually usable right now
Definition:
wvstream.cc:445
Generated by
1.8.17