摘要: 一、gethostbyname()函数说明——用域名或主机名获取IP地址 包含头文件 #include <netdb.h> #include <sys/socket.h> 函数原型 struct hostent *gethostbyname(const char *name); 这个函数的传入值是域 阅读全文
posted @ 2019-07-18 14:16 突突兔 阅读(559) 评论(0) 推荐(0) 编辑