Re: Trouble with getbyhostname()
- From: Rick Jones <rick.jones2@xxxxxx>
- Date: Wed, 26 Mar 2008 16:44:38 +0000 (UTC)
Jurgen Haan <jurgen@xxxxxxxx> 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...
.
- Follow-Ups:
- Re: Trouble with getbyhostname()
- From: Unruh
- Re: Trouble with getbyhostname()
- References:
- Trouble with getbyhostname()
- From: sam . barker0
- Re: Trouble with getbyhostname()
- From: Jurgen Haan
- Trouble with getbyhostname()
- Prev by Date: Re: Trouble with getbyhostname()
- Next by Date: Re: SMTP timeout after DATA from <server>
- Previous by thread: Re: Trouble with getbyhostname()
- Next by thread: Re: Trouble with getbyhostname()
- Index(es):