Thanks lots . it is great and easy to understand.
re: hostent结构体[未登录] xixi 2008-10-26 21:10
我觉得你关于inet_ntop()的作用理解错了:
It should be "similar to inet_ntoa()" but working with IPV4 and IPv6"
,besides, it used to map a 32-bit integer(an IP address in network byte order) to an ASCII string in dotted decimal format.