Hacker News new | past | comments | ask | show | jobs | submit login

I personally think that the Berkeley socket api is really really ugly. Plan9's networking api is very nice, though: https://9fans.github.io/plan9port/man/man3/dial.html



The man page in the link has further links to source code.

Seems like the API is built on top of sockets, which is not a bad idea.

I certainly agree that sockets can get tedious.


the plan9 port API is based on sockets, yes - because plan9port is a port of plan9 runtime to other OSes.

However, BSD Sockets are bad API, and can be argued to be one of the reasons, if not major reason, behind many issues in IP-based networks, including slow IPv6 rollout.

They also were a rushed port/rewrite of existing TCP/IP code done essentially by grad students on a grant from DoD because vendor (DEC) told DoD that they are not getting any new models of the computer they used primarily for TPC/IP.

Part of the requirements was that the resulting code is shared so that vendors could quickly provide support for TCP/IP in various products.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: