non-blocking socket?

stefan stefan@lkcc.org
Wed Apr 12 12:37:00 GMT 2000


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



More information about the Cygwin mailing list