From: werme@alingo.zk3.dec.com (Eric Werme)
Subject: Re: gethostid() never works onAlpha
Date: 1995/11/06 [thread overview]
Message-ID: <werme.815620725@alingo.zk3.dec.com> (raw)
In-Reply-To: danpop.815090660@rscernix
Dan.Pop@mail.cern.ch (Dan Pop) writes:
>Since gethostid is broken (as you have already noticed), use gethostname
>to get the name of the host, then gethostbyname to get its IP address.
Err, at the risk of opening the can of worms in Pandora's box, let's just
say we don't use it. After all, IP addresses are assigned to network
interfaces, not systems.
# hostid
0
# hostid 1234
# hostid
0x4d2
# hostid 0x1234
# hostid
0x1234
--
Eric (Ric) Werme | werme@zk3.dec.com
Digital Equipment Corp. | This space intentionally left blank.
prev parent reply other threads:[~1995-11-06 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-10-30 5:00 gethostid() never works onAlpha Mr SH Cunningham
[not found] ` <danpop.815090660@rscernix>
1995-11-06 5:00 ` Eric Werme [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox