delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/07/23:30:29

From: tgrooms AT earthlink DOT net (Terry Grooms)
Subject: setfl () and accept ()
7 May 1998 23:30:29 -0700 :
Message-ID: <000101bd79de$9ec36cb0$4ba252a6.cygnus.gnu-win32@sc12.vnet.net>
Reply-To: <tgrooms AT earthlink DOT net>
Mime-Version: 1.0
To: <gnu-win32 AT cygnus DOT com>

Arg.  It seems that I've been bitten.  Since signals aren't supported very
well in the gnu-win32, I had to come up with an alternative way to get
around the blocking habit of accept () and connect ().  I decided to change
the sockets to asynchronous behavior using setfl (socket, F_SETFL,
O_NONBLOCK | flags).  Well, it reports that everything is okay but, alas, it
seems that the NONBLOCK property is ignored.  I still block hard and fast at
the accept () or connect ().
	Does anyone have another option or a solution?

Thanks in advance.
Terry Grooms
tgrooms AT earthlink DOT com

-
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