Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

wvstreamex4.cc

Go to the documentation of this file.
00001 #include <wvstream.h>
00002 
00003 int main()
00004 {
00005     char buffer[10];
00006     size_t numread;
00007     
00008     while (wvcon->isok())
00009     {
00010         if (wvcon->select(-1))
00011         {
00012             numread = wvcon->read(buffer, sizeof(buffer));
00013             if (numread) 
00014             {
00015                 wvcon->print("You said: ");
00016                 wvcon->write(buffer, numread);
00017                 wvcon->print(" (%s bytes)\n", numread);
00018             }
00019         }
00020     }
00021 }

Generated on Sat Aug 24 21:37:01 2002 for WvStreams by doxygen1.2.15