标签: c networking gethostbyname gethostbyaddr
gethostbyname()和gethostbyaddr()都会在返回的hostent structs中返回不同的h_name值。我想知道这种行为是否正常,或者两者是否应该返回相同的主机名?
gethostbyname()
gethostbyaddr()
hostent structs