[Home] [Groups] - Message: [Prev in Group] [Next in Group]
1190: fd_set limitations
[Full Header] [Plain Text]
From: Greg Munt <greg@uni-corn.demon.co.uk>
Newsgroups: nu.kanga.list.mud-dev
Date: Wed, 30 Apr 1997 00:20:51 +0100 (GMT+0100)
References: [1]
Organization: Kanga.Nu
On Mon, 28 Apr 1997 clawrenc@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"