gethostbyname和struct hostent详解

struct hostent *gethostbyname(const char *name); gethostbyname函数根据域名解析出服务器的ip地址,它返回一个结构体struct hostent: #include <netdb.h> struct hostent { char *h_name; /* official name of host */ cha
相关文章
相关标签/搜索