Programmer's Guide to the WvStreams Libraries | ||
---|---|---|
Prev | Chapter 7. WvStream - communications fundamentals | Next |
We should mention that you can use the select() function for millisecond-resolution delays, or to timeout when no data is received for a certain amount of time. The following example babbles something at you after every second of no input, and exits if you don't say anything for ten seconds.