Re: How can I translate IP to hostname in C
- From: Bruce Cran <bruce@xxxxxxxxxxx>
- Date: Thu, 22 May 2008 19:30:45 +0100
John Timony wrote:
Hi,guys
I am writing a c program in FreeBSD,and I can not
translate a ip to hostname
,i wonder if there is a function to take this job...
You could use gethostbyaddr(3), but those traditional functions have been replaced with more flexible versions such as getnameinfo(3) on newer systems. There's a good introduction to modern sockets programming at http://people.redhat.com/drepper/userapi-ipv6.html
--
Bruce Cran
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: How can I translate IP to hostname in C
- From: Bernd Walter
- Re: How can I translate IP to hostname in C
- References:
- How can I translate IP to hostname in C
- From: John Timony
- How can I translate IP to hostname in C
- Prev by Date: Re: libz.so no found
- Next by Date: Re: How can I translate IP to hostname in C
- Previous by thread: Re: How can I translate IP to hostname in C
- Next by thread: Re: How can I translate IP to hostname in C
- Index(es):
Relevant Pages
|