This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: non-blocking socket?
- To: tau at entropia dot com
- Subject: Re: non-blocking socket?
- From: stefan <stefan at lkcc dot org>
- Date: Wed, 12 Apr 2000 21:34:53 +0200 (CEST)
- cc: "cygwin at sourceware dot cygnus dot com" <cygwin at sourceware dot cygnus dot com>
On Tue, 11 Apr 2000 tau@entropia.com wrote:
> I appreciate if non-blocking socket is supposed to work and if so, how
> to use it.
> /* winsock function to make it non-blocking */
> unsigned long a[1];
> int e = ioctlsocket(s, FIONBIO, a);
> if (e == -1) {
> printf("ioctlsocket failed\n");
> exit(1);
> }
Try setting a[1] to 1 !!!
Maybe this will help.
Stefan.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com