From: dahms@ifk20.mach.uni-karlsruhe.de
Subject: RE: accept() fails?
9 Jul 1997 18:32:41 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <009B7061.7BD8DC20.18611.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: jeff@maribor.pfnet.com
Original-CC: gnu-win32@cygnus.com, dahms@ifk20.mach.uni-karlsruhe.de
Original-Sender: owner-gnu-win32@cygnus.com

Hi Jeff, you wrote:

: The code below, compiled for Linux, works as expected.  Compiled
: for b18 cygwin32 immediately returns -1 from the call to accept.

Initializing should help. I'm astonished that it worked under Linux!

:   int tmp;

    tmp = sizeof(sockaddr);

:   if ((nfd=accept(fd, (struct sockaddr *) &sockaddr, &tmp)) < 0) {


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
