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