cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cleaning up lib/hostip.c

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 22 Apr 2004 11:22:23 +0200 (CEST)

On Thu, 22 Apr 2004, Daniel Stenberg wrote:

> Here's how I imagine the threaded ipv4-version of the resolver would look
> like. I agree that with this approach the CURL_IPRESOLVE_* and
> CURL_INADDR_NONE checks need to be duplicated. I'll see if I can figure out
> a way to keep them at a single place easier.

Adding a Curl_ipvalid() function that is called before Curl_getaddrinfo()
solves the problem at least partly since then the CURL_IPRESOLVE_* checks can
be taken away from the Curl_getaddrinfo() implementations.

I uploaded a 7.12-hostip2 package now that is edited like this:

        http://curl.haxx.se/beta/

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-22