This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: accept() fails?


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]