摘要: gethostbyname()函数说明——用域名或主机名获取IP地址 包含头文件 #include <netdb.h> #include <sys/socket.h> 函数原型 struct hostent *gethostbyname(const char *name); 这个函数的传入值是域名或 阅读全文
posted @ 2017-02-16 10:46 扁桃体也发言 阅读(297) 评论(0) 推荐(0) 编辑