Search the web
Sign In
New User? Sign Up
libsocket · libsocket is a library for DJGPP, the DO
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [libsocket] Limitation for the number of incoming connections?   Message List  
Reply | Forward Message #395 of 491 |
Re: [libsocket] Limitation for the number of incoming connections?

Hi Richard,

And thanks for your quick answer.

To answer your question: I'm trying to develop a server (for the fun of it)
for a network based basic game. It should also include a chat function. So the
much client I can accept, the better.

I'm using win98. The limitation of 31 sockets must be understood
"per-process" or "win98 wide'? I mean, if I start n processes, the limitation
becomes n*31 or is it still 31?

Have a nice day.

Richard Dawe wrote:

> Hello.
>
> Bauce wrote:
> > I get a beginner question on libsocket: suppose that I define a socket
> > (non-blocking, if this matters).
>
> There should be no difference in limit between blocking and non-blocking
> sockets.
>
> > I use listen() and accept() on it for incoming connections from the
> > network. What is the limit of the 'backlog' parameter I can provide to
> > the lsiten()?
>
> This will depend on the version of Winsock that you have, because
> libsocket works in different ways, depending on the Winsock version.
>
> If you have Winsock 1.1, which ships with Windows '95, then I do not
> actually know. I think it may be measured in the hundreds.
>
> Winsock 2 ships with Windows '98, but Windows '95 can also be upgraded to
> use it. With Winsock 2, libsocket uses an interface that will be limited
> to 32 sockets (actually, I think this will be 31). Try to set the backlog
> higher than this may actually cause a crash, although I haven't tested for
> it.
>
> How many connections do you want to listen for? I think a backlog of 5 is
> usually used.
>
> > Is it linked with the "FILES=" DOS parameter?
>
> No, the socket handles aren't related to DOS file handles.
>
> Hope this helps, bye,
>
> --
> Richard Dawe
> [ mailto:richdawe@... | http://www.bigfoot.com/~richdawe/ ]
>
>




Fri Aug 18, 2000 7:15 am

bauce@...
Send Email Send Email

Forward
Message #395 of 491 |
Expand Messages Author Sort by Date

Hello. ... There should be no difference in limit between blocking and non-blocking sockets. ... This will depend on the version of Winsock that you have,...
Richard Dawe
rich@...
Send Email
Aug 17, 2000
9:47 pm

Hi Richard, And thanks for your quick answer. To answer your question: I'm trying to develop a server (for the fun of it) for a network based basic game. It...
Bauce
bauce@...
Send Email
Aug 18, 2000
7:15 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help