cURL / Mailing Lists / curl-library / Single Mail


another host resolve code re-org

From: Daniel Stenberg <>
Date: Wed, 23 Jun 2004 14:36:26 +0200 (CEST)


I just wanted to let you know that I have yet another reorg of the name
resolve code up my sleeve, about to show up any day now:

I'm adding a function named Curl_he2ai() for IPv4-only hosts that translates a
good old fashioned 'struct hostent' to a 'Curl_addrinfo' chained list of info.

This way, we can avoid lots of #ifdefs in the code: Curl_addrinfo will be the
only struct to use for code that wants name resolved info in the sources
(outside the actual name resolve code).

Expect this change to have some initial quirks and flaws we need to smoothen
out when I commit this (they are quite substantial and will affect many parts
of the code). The autobuilds will be as useful as ever.

      Daniel Stenberg -- --
       Dedicated custom curl help for hire:
Received on 2004-06-23