Didier Verna wrote:
William> Didier, why do you want this information to begin with?
Actually, I'm writing a new version of mchat, that I hope will be
ready before 21.0 is out (as the first one was really nothing else than a
prototype to illustrate the feature). I wanted to retrieve /one/ IP address of
the machine to build a unique identifier for each member of the multicast
group. This raised the more general question that I submitted to the list.
In which case, the original idea of just using the IP address from the
result of calling gethostbyname() on the result of gethostname() will
probably be adequate.
In fact, why not just use the FQDN as the identifier (or does it need
to be a fixed size?)
--
Glynn Clements <glynn(a)sensei.co.uk>