In the gethostbyname call after passing it the result from gethostname..I get a pointer to a hostent struct. If the localhost has several interfaces, is the zero indexed one the default one used when that host sends multicast?
In the gethostbyname call after passing it the result from gethostname..I get a pointer
Share
No, there is no particular ordering of the results. They don’t even necessarily correspond to interfaces for the same machine; they might be a number of separate machines serving round-robin for the dns name.