cURL / Mailing Lists / curl-library / Single Mail


Re: non-blocking sockets portability test

From: SM <>
Date: Thu, 27 Sep 2001 04:08:22 +0400

At 15:40 26-09-2001 +0200, Daniel Stenberg wrote:
>It seems to already work fine on Solaris (2.7) and Linux (2.4). I would
>especially like to know the mileage on windows machines and machines that
>don't support O_NONBLOCKING. Amiga seems to have its own system too, but I
>wouldn't really expect anyone to actually have one to try this on... B-]

I did some changes to some of the socket constants and removed some defines
to get the code to compile under Win9x. Here are the results:

Non-blocking socket set
connect() returned -1
select() returned 1
returned 0

This is the result for FreeBSD (I have to remove the stropts.h define):

Non-blocking socket set
connect() returned 0
returned 100

Received on 2001-09-27