char*inet_ntoa(struct in_addr in)将一个IP转换成一个互联网标准点分格式的字符串。
我把 inet_ntoa 需要的头文件加上去:
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
转载于:https://www.cnblogs.com/soyo/p/5601837.html
char*inet_ntoa(struct in_addr in)将一个IP转换成一个互联网标准点分格式的字符串。
我把 inet_ntoa 需要的头文件加上去:
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
转载于:https://www.cnblogs.com/soyo/p/5601837.html