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: non-blocking socket?


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


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