Socket Select with empty fd set
Posted
by whoi
on Stack Overflow
See other posts from Stack Overflow
or by whoi
Published on 2010-04-08T08:01:00Z
Indexed on
2010/04/08
8:03 UTC
Read the original article
Hit count: 332
Hi; Suppose you have an fd set which can have zero or more sockets in it. When I try to call select operation on empty fd set, what I get is -1 as the number of fds which are set, meaning error. So what would you suggest to overcome this problem, you might say do not call if empty but I have a loop and any time fd set can hold 0 or more sockets. What is the best approach about this problem? (we are on C programming language)
© Stack Overflow or respective owner