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 - 数组指针及相关表达式求值

c++ - 在 Win/Linux 上使用 C/C++ 使用大页面分配内存的最简单方法是什么?

c++ - 缺少对指向成员函数的绑定(bind)指针的调用

c++ - D语言调用C++(C)

c - 如何在 Delphi 中比较两个数字是否相等?

compilation - unistd.h 和 crypt.h 中的 crypt 有什么区别?

c - 对套接字对的读/写是完全同步的还是有缓冲?

C++ 从文件中计算字符数组中的特定计数器

c++ - 任务计划程序 : run task each hour from the current moment

c - 即使使用 -m32,32 位 shellcode 在汇编中执行,但在 64 位操作系统上不能在 c 中执行