delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/09/18:32:41

From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Subject: RE: accept() fails?
9 Jul 1997 18:32:41 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <009B7061.7BD8DC20.18611.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: jeff AT maribor DOT pfnet DOT com
Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Original-Sender: owner-gnu-win32 AT cygnus DOT 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 AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019