Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gethostbyname()当我在程序中调用它们时,gethostbyaddr()它们都返回了不同的 h_name 值。hostent structs我想知道这种行为是否正常,或者两者是否应该返回相同的主机名?
gethostbyname()
gethostbyaddr()
hostent structs