Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot open include file: 'arpa/inet.h': [closed]

#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.

like image 925
user3580005 Avatar asked May 19 '14 05:05

user3580005


1 Answers

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.

like image 59
Leigh Avatar answered Oct 27 '22 22:10

Leigh