Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Unix/Linux Server 256 Socket Limit Question

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 DavidRM   Members   

270
Like
Likes
Like

Posted 20 October 1999 - 07:15 AM

In unix, to use the select(...) routine to poll sockets for state changes, the file descriptor structure is a 256 bit array. This effectively limits a single process to only accessing 256 sockets at one time. How can do you get around this problem to allow more than 256 sockets/process?

Thanks in advance.

------------------
DavidRM
Samu Games


#2 Sphet   Members   

631
Like
Likes
Like

Posted 19 October 1999 - 07:20 AM

I just had a look in the Winsock help files, it it would seem that under Windows, FD_SET's have a default max descriptor of 64 entries (you can set it higher, but defaults are usually there for a reason). I would suspect you might have to do multiple selects() on ranges of connections, or fork it out to handle each range seperately.. I've never thought about it, but I suppose it would be a problem ..

#3 DavidRM   Members   

270
Like
Likes
Like

Posted 20 October 1999 - 07:15 AM

We're considering something we're calling "relay servers" which are forked off to handle some of the connections. Before we go to that much trouble, though, we wanted to know if anyone knew a better way around the 256 connection limit.

------------------
DavidRM
Samu Games





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.