This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: accept() fails?
- To: jeff at maribor dot pfnet dot com
- Subject: RE: accept() fails?
- From: dahms at ifk20 dot mach dot uni-karlsruhe dot de
- Date: Thu, 10 Jul 1997 02:28:58 +0200 (METDST)
- CC: gnu-win32 at cygnus dot com, dahms at ifk20 dot mach dot uni-karlsruhe dot de
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".