#include <arpa/inet.h>
I am getting this type of error
Cannot open include file: 'arpa/inet.h':
How do I include this header file? I am actually doing this code in VC++2012.
Windows uses different headers and implementation for Berkeley sockets instead of the Unix <arpa/inet.h>
headers; you need to use a different header and group of functions.
#include <Winsock2.h>
More information about this is in the Winsock2 documentation.
See also: Where do I get arpa/inet.h.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With