c gethostbyname函数使用
摘要:
1. 使用gethostbyname(char*)函数,拿到struct hostent 2. 使用inet_ntop()转换成ip地址 #include <stdio.h> #include <signal.h> #include <unistd.h> #include <stdlib.h> #i 阅读全文
posted @ 2020-02-15 20:43 luckygxf 阅读(951) 评论(0) 推荐(0)
浙公网安备 33010602011771号