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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-25
  • 2022-12-23
  • 2021-06-28
猜你喜欢
  • 2021-11-25
  • 2021-08-07
  • 2021-08-07
  • 2021-07-06
  • 2021-10-25
  • 2022-01-20
相关资源
相似解决方案