Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Berkeley sockets
(section)
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!
===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]] |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)