[openbeosnetteam] Re: Fix for resolving host names

> That sounds like a big mess to me.

Oh, please, don't you love these Unixish anachronic source code!?
:-)

> 1) what is h_errno actually used for?

That's the BIND client/DNS network API-only error code global variable.
If any getXbY() call failed, you're not supposed to look into errno 
(which could contains more internal but usefull error code) but into 
h_errno to get error origin indication.
That's sucks, yes.

But, unless we come with our own BIND client-compaitible API with a 
better design, instead of our ISC port, we're stuck.

> 2) if it's used like the POSIX errno variable, why not copy the exact 
> mechanism?

It try to.
But failed, it seems. That's the bug, precisely. :-)

I'll see if I could find a fix.
 
- Philippe

--
Fortune Cookie Says:

It's always darkest just before it gets pitch black.

Other related posts: