version 1.3, 2003/08/07 10:30:51 |
version 1.4, 2003/08/13 02:07:06 |
|
|
FD_SET(s1, &read_template); |
FD_SET(s1, &read_template); |
FD_SET(s2, &read_template); |
FD_SET(s2, &read_template); |
|
|
nb = select(FD_SETSIZE, &read_template, (fd_set *) 0, (fd_set *) 0, &wait); |
nb = select(s1 > s2 ? s1 + 1 : s2 + 1, &read_template, (fd_set *) 0, |
|
(fd_set *) 0, &wait); |
if (nb <= 0) { |
if (nb <= 0) { |
\fIAn error occurred during the \fPselect\fI, or |
\fIAn error occurred during the \fPselect\fI, or |
the \fPselect\fI timed out.\fP |
the \fPselect\fI timed out.\fP |