I’m adding multiple sockets and starting to select, I see that the last
socket added by FD_SET is only selected and other’s don’t work. I must be
missing something. OTOH, I didn’t find anything wrong with my code. It’s
very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing only
2 sockets.
I’m adding multiple sockets and starting to select, I see that the last
socket added by FD_SET is only selected and other’s don’t work. I must be
missing something. OTOH, I didn’t find anything wrong with my code. It’s
very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing
only 2 sockets.
I’m adding multiple sockets and starting to select, I see that the last
socket added by FD_SET is only selected and other’s don’t work. I must be
missing something. OTOH, I didn’t find anything wrong with my code. It’s
very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing
only 2 sockets.
I’m adding multiple sockets and starting to select, I see that the last
socket added by FD_SET is only selected and other’s don’t work. I must
be missing something. OTOH, I didn’t find anything wrong with my code.
It’s very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing
only 2 sockets.
I’m adding multiple sockets and starting to select, I see that the last
socket added by FD_SET is only selected and other’s don’t work. I must
be missing something. OTOH, I didn’t find anything wrong with my code.
It’s very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing
only 2 sockets.
I’m adding multiple sockets and starting to select, I see that the
last socket added by FD_SET is only selected and other’s don’t work. I
must be missing something. OTOH, I didn’t find anything wrong with my
code. It’s very plain code:
FD_ZERO
open sockets
FD_SET
readyfds = select(width, &rfd, 0, 0, NULL);
I set the fd width properly (even tried FD_SETSIZE).
Any idead why only last socket will be selected, currently I’m testing
only 2 sockets.