What are the meanings of "netinet" and "in" in "#include <netinet/in.h>" ?
Asked
Active
Viewed 1.1k times
2 Answers
3
"#include <netinet/in.h>
The header file in.h contains constants and structures needed for internet domain addresses."
As quoted at http://www.linuxhowtos.org/C_C++/socket.htm

Nitin Venkatesh
- 22,221
-2
It means "Internet"... obvious really.

psusi
- 37,551
-
2Sorry, My English is not very well. I don't understand why "netinet" means "Internet". – user18947 May 30 '11 at 15:45
-
1Presumably it was named that way to signify that the directory contains networking headers ("net"), more specifically for the internet protocols ("inet"). – James Henstridge May 30 '11 at 23:26