non-blocking socket? [OFFTOPIC]

Chris Faylor cgf@cygnus.com
Wed Apr 12 13:10:00 GMT 2000


On Wed, Apr 12, 2000 at 09:34:53PM +0200, stefan wrote:
>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.

Can I point out that this all has nothing to do with cygwin?  You'd
probably be better off finding an appropriate winsock mailing list
or newsgroup.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list