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 }