Where do I get arpa/inet.h?

后端 未结 2 1427
失恋的感觉
失恋的感觉 2021-01-04 00:23

Question is really simple. I need a tool to convert char* to ip adress and use it in

sockaddr_in.s_addr

arpa/inet.h has

2条回答
  •  迷失自我
    2021-01-04 00:37

    arpa/inet.h is the include used on Unix-like systems.

    On Windows, you must use winsock2.h.

    Example from the MSDN.

提交回复
热议问题