有人能解释一下 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/