首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >TCP/IP头文件的组织

TCP/IP头文件的组织
EN

Stack Overflow用户
提问于 2015-02-03 08:52:23
回答 1查看 838关注 0票数 0

有人可以解释为什么TCP/IP头文件是这样组织的。

libc6-dev on ubuntu-14.04中:

代码语言:javascript
复制
arpa/
netinet/
x86-64-linux-gnu/
...

为什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-04 02:02:42

我从维基上找到了答案。

代码语言:javascript
复制
<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.

files

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28294772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档