Date: Fri, 05 Feb 1999 00:18:38 -0800 From: "Randy A. Katz" <randyk@ccsales.com> To: questions@FreeBSD.ORG Subject: A Perl Question Message-ID: <3.0.5.32.19990205001838.03baa980@ccsales.com>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying to use gethostbyaddr and it is returning blank: $ipaddress = "216.0.22.30"; ($name, $aliases, $addrtype, $length, @addrs) = gethostbyaddr($ipaddress,AF_INET); print "Name: $name\n"; print "Aliases: $aliases\n"; print "Type: $addrtype\n"; print "Length: $length\n"; foreach $p (@addrs) { print "A:$p\n"; } exit; I grepped for AF_INET in /usr/include and there is nothing there, I did a man on gethostbyaddr and AF_INET is the only parameter listed for type??? Thank you, Randy Katz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990205001838.03baa980>