Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-Id: <199912061554.JAA15146@hp2.xraylith.wisc.edu>
To: stefan <stefan@linux.f1.fhtw-berlin.de>
cc: cygwin@sourceware.cygnus.com
Subject: Re: More than 64 sockets ? 
In-reply-to: Your message of "Sun, 05 Dec 1999 23:01:24 +0100."
             <Pine.LNX.4.10.9912052255370.691-100000@bono.reversers.net> 
Date: Mon, 06 Dec 1999 09:54:39 -0600
From: Mumit Khan <khan@NanoTech.Wisc.EDU>

stefan <stefan@linux.f1.fhtw-berlin.de> writes:
> Hello,
> 
> we were porting a server software to Win9x/NT and had to notice that you
> cannot accept() more than 64 sockets. Why is this ? Can anyone help us ?

The underlying OS API, WaitForMultipleObjects, has a limit of 64 handles
it can wait on, and that's probably the reason. There are tricks to get
around it, but it requires creating multiple threads. Not pretty. Go
to the MSDN docs on www.microsoft.com and search for 64 *and* Wait and 
see if it turns up; also, search comp.os.ms-windows.programmer.win32
on www.deja.com, where this is usually beated to death. Look for the
article by Richter that shows the multiple thread implementation, where
each new thread is started to handle the extra batches of 64 handles
to wait for -- this is something Cygwin should implement (uh oh, do
I hear the "feel free to submit patches" response ;-).

> Secondly we would like to know how to link the program without
> cygwin1.dll. The link option -mno-cygwin doesnt work properly. Afterwards
> there still some symbols missing. Is there a more informational document
> for this kind of topic ?

See my mno-cygwin howto at
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/#mno-cygwin

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

