>It appears that the intent of the function "ourSourceAddressForMulticast" is
>to first attempt to use a multicast loopback method to determine the local
>IP, else if this fails use "gethostname". A problem in the test logic *may*
>exist in that if the multicast WRITE fails then the second method(calling
>"gethostname") is skipped, though if the multicast READ fails then
>"gethostname" is used as expected.
>>Would it not be better to try "gethostname" regardless of what
>failed(Write/Read) ?
Yes, I think so. I'll make this change in a future release.
(In practice, though, the systems that tend to have the most problems with
multicast are embedded systems, and they're also systems for which the
"gethostname"->"gethostbyname" method are least likely to work also.)
Ross Finlayson
LIVE.COM
<http://www.live.com/>