[TUHS] Unix APIs: elegant or not?
Dave Horsfall
dave at horsfall.org
Thu Nov 1 07:31:25 AEST 2018
On Wed, 31 Oct 2018, Paul Winalski wrote:
> I've always thought that the UNIX file primitives very elegantly adhere
> to this principle. [...]
Until Berkeley introduced sockets, which has the worst API that I've ever
seen in Unix-land...
Last place I worked, they had a library that simplified it; the
application said "I am a server on port NNN" and the client said "I want
to talk to port NNN on 1.2.3.4" etc.
I wish I'd "borrowed" that code when I left.
-- Dave
More information about the TUHS
mailing list