WvStreams
Docs
sgmlmanual
egfiles
wvstreamex.cc
1
/*
2
* A WvStream example.
3
*
4
* Some documentation for WvStreams...
5
*/
6
7
#include <wvstream.h>
8
9
int
main()
10
{
11
while
(wvin->
isok
())
12
wvout->print(
"You said: %s\n"
, wvin->
blocking_getline
(-1));
13
}
WvStream::blocking_getline
char * blocking_getline(time_t wait_msec, int separator='\n', int readahead=1024)
This is a version of getline() that allows you to block for more data to arrive.
Definition:
wvstream.cc:602
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