[英]The organization of TCP/IP header files
有人可以解釋為什么這樣組織TCP / IP頭文件。
在ubuntu-14.04上的libc6-dev
:
arpa/
netinet/
x86-64-linux-gnu/
...
為什么?
我從Wiki找到了答案。
<sys/socket.h> Core BSD socket functions and data structures.
<netinet/in.h> AF INET and AF INET6 address families and their corresponding protocol families PF_INET and PF_INET6. Widely used on the Internet, these include IP addresses and TCP and UDP port numbers.
<sys/un.h> PF_UNIX/PF_LOCAL address family. Used for local communication between programs running on the same computer. Not used on networks.
<arpa/inet.h> Functions for manipulating numeric IP addresses.
<netdb.h> Functions for translating protocol names and host names into numeric addresses. Searches local data as well as DNS.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.