Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

closed as off topic by Luis Alvarado, Stefano Palazzo May 31 '11 at 6:51

Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

It means "Internet"... obvious really.

share|improve this answer
Sorry, My English is not very well. I don't understand why "netinet" means "Internet". – user18947 May 30 '11 at 15:45
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

"#include <netinet/in.h>

The header file in.h contains constants and structures needed for internet domain addresses."

As quoted at

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.