select()
1) When looking throught the select() man page, it has the following in the description:
Quote:
2) Also, when I use select to watch a file descriptor, the time structure allows me to... have my program pause during the select() function call, waiting for an fd to become available??? And if one doesn't become available, then the program continues on? |
1) block means, wait until something is available for reading, can be forever ...
2) the time structure specifies a timeout after which the call returns, whether data is available or not. |
All times are GMT -5. The time now is 11:29 PM. |