A happy new year!

> your page is not realy very usefull. First yes it describe how to code 
> protocol independent but
> the big problem is it is ONLY valid for platforms with are full 
> compatible with the newest functions.

I'm afraid that this is misunderstanding. 

You can implement getaddrinfo() using gethostbyname(). This means that
you can use getaddrinfo() on any platforms which provides
gethostbyname() only.

My point is to separate protocol dependent parts and protocol
independent parts, making main parts of wget "protocol independent"
while making *low-level* functions "protocol dependent".

Actually, portable SSH supports many platforms by this way.

Note that if wget takes the protocol independent coding style, many
"#ifdef"s can be removed.

> 3. There are some point in the protocols of HTTP and FTP where the 
> different format of readable adress are used
> and on ftp even different command set's.

Since I have experiences to modify IPv4 only programs, including FTP
and HTTP, to IPv6-IPv4 one, I know this problem. Yes, some part of
wget *would* remain protocol dependent.

But this is outside the scope of my page.

Anyway, thank you for your consideration.

--Kazu

Reply via email to