WvStreams
wvstreamex2.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  while (wvcon->isok())
12  wvcon->print("You said: %s\n", wvcon->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