Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Berkeley sockets
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==History and implementations== Berkeley sockets originated with the 4.2BSD [[Unix]] [[operating system]], released in 1983, as a programming interface. Not until 1989, however, could the [[University of California, Berkeley]] release versions of the operating system and networking library free from the licensing constraints of [[AT&T Corporation]]'s proprietary Unix. All modern operating systems implement a version of the Berkeley socket interface. It became the standard interface for applications running in the [[Internet]]. Even the [[Winsock]] implementation for MS Windows, created by unaffiliated developers, closely follows the standard. The BSD sockets API is written in the [[C (programming language)|C programming language]]. Most other programming languages provide similar interfaces, typically written as a [[wrapper library]] based on the C API.<ref>E. g. in the [[Ruby (programming language)|Ruby programming language]] [https://docs.ruby-lang.org/en/master/Socket.html class Socket ]</ref> ===BSD and POSIX sockets=== As the Berkeley socket API evolved and ultimately yielded the POSIX socket API,<ref>{{cite web|url=http://www.opengroup.org/onlinepubs/9699919799/functions/contents.html |title=β POSIX.1-2008 specification |publisher=Opengroup.org |access-date=2012-07-26}}</ref> certain functions were deprecated or removed and replaced by others. The POSIX API is also designed to be [[Reentrancy (computing)|reentrant]] and supports IPv6. {|class="wikitable" |- !Action !BSD !POSIX |- |Conversion from text address to packed address |inet_aton |inet_pton |- |Conversion from packed address to text address |inet_ntoa |inet_ntop |- |Forward lookup for host name/service |gethostbyname, gethostbyaddr, getservbyname, getservbyport |[[getaddrinfo]] |- |Reverse lookup for host name/service |gethostbyaddr, getservbyport |[[getnameinfo]] |} ===Alternatives=== The [[Streams (networking API)|STREAMS]]-based [[Transport Layer Interface]] (TLI) API offers an alternative to the socket API. Many systems that provide the TLI API also provide the Berkeley socket API. Non-Unix systems often expose the Berkeley socket API with a translation layer to a native networking API. [[Plan 9 from Bell Labs|Plan 9]]<ref>{{cite web|url=http://doc.cat-v.org/plan_9/4th_edition/papers/net/|title=The Organization of Networks in Plan 9}}</ref> and [[Genode]]<ref>{{cite web|url=https://genode.org/documentation/release-notes/17.02#Linux_TCP_IP_stack_as_VFS_plugin|title=Linux TCP/IP stack as VFS plugin}}</ref> use file-system APIs with control files rather than file-descriptors.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Berkeley sockets
(section)
Add topic