fd_set limitations

Greg Munt greg at uni-corn.demon.co.uk
Wed Apr 30 00:20:51 CEST 1997


On Mon, 28 Apr 1997 clawrenc at cup.hp.com wrote:

> >Also, an fd_set holds FD_SETSIZE file descriptors. Is it true that a 
> >theroretically infinite number of FDs can be opened by the server,
> >and  that I can handle > FD_SETSIZE connections by having some kind
> >of linked  list of fd_sets?
> 
> Almost always: No.  The exceptions are so rare and so limited as to be
> ignorable (certain classes of list based OS'es etc).

Every connected socket uses up a socket descriptor. I think it is common 
for FD_SETSIZE to be 256 (it is under GNU, anyway). So how would you be 
able to maintain, say, 300 simultaneous connections? 

Is this anything to do with port concentrators? I've heard of them, but have 
no idea what they are, or what they are used for..

------------------------------------------------------------------------------
        T  H  E     F  R  O  N  T  I  E  R  S     P  R  O  J  E  C  T   
    http://www.uni-corn.demon.co.uk   telnet://linux2.cms.shu.ac.uk:9999
         I'll stay out of animals' way if they'll stay out of mine 
                        "Hey you, get off my plate"




More information about the mud-dev-archive mailing list