haskell-socket icon indicating copy to clipboard operation
haskell-socket copied to clipboard

Add socketToFd, a safe-ish Socket destruction method

Open sternenseemann opened this issue 3 years ago • 0 comments

socketToFd invalidates the socket to the rest of the API like close would, but returns the file descriptor instead. This is useful to have if you need an destructor of Socket, but prevents you from continuing to use the Socket even though you are using the file descriptor independently of it.

Partially addresses #62.

sternenseemann avatar Mar 15 '21 01:03 sternenseemann