Socket library from hslibs

Simon Marlow
Fri, 21 Sep 2001 12:00:33 +0100

Chris Webb writes:
> For simple networking, I usually find that the simple Socket interface
> from hslibs does everything I need, except that I always need=20
> to import
> sClose from SocketPrim as well, so I can close the sockets I open.
> Tidying up some old code this morning, I was wondering: is the absence
> of sClose in the Socket interface accidental, or should I be disposing
> of listening sockets some other way?

No, I think you're right.  Socket should really export sClose too.
Perhaps it should be called Socket.close, or closeSocket?