0

What are the meanings of "netinet" and "in" in "#include <netinet/in.h>" ?

2 Answers2

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

-2

It means "Internet"... obvious really.

psusi
  • 37,551
  • 2
    Sorry, My English is not very well. I don't understand why "netinet" means "Internet". – user18947 May 30 '11 at 15:45
  • 1
    Presumably 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