Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
add comment

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.

2 Answers

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
add comment

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

share|improve this answer
add comment

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