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
相關文章
相關標籤/搜索