Re: Trouble with getbyhostname()
Jurgen Haan <jurgen@fake.tld> wrote:
> Uhm... not being a programmer, or anything, but isn't gethostbyname
> used for resolving names into adresses and not the other way around?
Yes, but for the last decade or so just about everyone's
gethostbyname() is willing to take-in an IPv4 address as a
dotted-decimal string.
However, for the last, oh five years or so, people should be migrating
to getaddrinfo() rather than gethostbyname()... :)
rick jones
--
denial, anger, bargaining, depression, acceptance, rebirth...
where do you want to be today?
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
|