select() with sockets>1024

I know from select()'s man page, glibc docs and from sys/select.h that linux select can use up to 1024 sockets which is good, but the problem is, it may only use 1024 sockets which value is less than 1024. Linux use bit arrays for fd_set (which saves memory, but limit the maximum socket number to 1024), and windows use an array of handles (with FD_SETSIZE=64).

The only way I see to use more than 1024 sockets under linux is to use poll, and under windows use many fd_sets.

Do you know any other way ?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!