c++ - POSIX 套接字和 BSD 套接字有什么区别?

标签 c++ c posix sockets

有人能解释一下 POSIX 套接字和 BSD 套接字之间的区别吗?

最佳答案

http://www.openss7.org/papers/strsock/sockimp.pdf 中所述:

Berkeley Sockets. Sockets uses the BSD interface that was developed by BBN for the TCP/IP protocol suite under DARPA contract on 4.1aBSD and released in 4.2BSD. BSD Sockets provides a set of primary API functions that are typically implemented as system calls. The BSD Sockets interface is non-standard, operated differently from the POSIX interface in subtle ways, and is now deprecated in favour of the POSIX/SUS standard Sockets interface.

POSIX Sockets. Sockets were standardized by X/Open, later the OpenGroup, and IEEE in the POSIX standardization process. They appear in XNS 5.2 [XNS99], SUSv1 [SUS95], SUSv2 [SUS98] and SUSv3 [SUS03]. POSIX/SUS Sockets is now the common application environment for accessing networking, deprecating the XTI for TCP/IP networking applications.

关于c++ - POSIX 套接字和 BSD 套接字有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1935138/

相关文章:

c++ - 从 'cmath' 和 'cstdlib' 得到一百个非常相似的编译器错误

c - GCC 定义到 VS

c - POSIX 正则表达式(C 语言)匹配 uuid

c++ - 在 C++ 中将 struct 转换为 int

C++ 函数错误——无法将大括号括起来的初始值设定项列表转换为 char*

c++ - 无法构造基模板类

c - 我是否需要为每个 C POSIX 线程使用不同的签名集以确保屏蔽信号时的原子性?

c++ - 无法启动状态以及状态之间的转换 : receiving various errors

c - 我的 C 程序中的阶乘计算不正确?

c - 使用指针在 argv1 中存储命令行参数时出错