Kyle R . Burton on Thu, 20 Dec 2001 23:30:16 +0100 |
I'm writing some C networking code, and I want the code to be able to report on all of the ip addresses available on the host. I can call gethostname() and then gethostbyname() to get the hostent struct [http://www.bgw.org/projects/c/host.c], which lists the aliases for the host, and the ip addresses associated with that host, but it doesn't seem to list all of the ip addresses assocaited with the host. I realize that there might not be a portable way to do this, but I still need to be able to do it. And I don't have a copy of my Sevens' book handy. Anyone know how or have any pointers to where I might be able to find out? Thanks, Kyle R. Burton -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mortis@voicenet.com http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ ______________________________________________________________________ Philadelphia Linux Users Group - http://www.phillylinux.org Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|
|