haskell-socket
haskell-socket copied to clipboard
A Haskell binding to the POSIX sockets API
See .
Not sure, if this is even intended. Just reporting it to be sure. ``` Configuring library for socket-0.8.2.0.. Preprocessing library for socket-0.8.2.0.. AddressInfo.hsc:169:16: error: use of undeclared identifier 'AI_ALL' hsc_const...
Most obviously, the return type of the system calls `send`, `recv`, etc. are given as `ssize_t`, but the bindings in this library appear to use `CInt`, which is usually not...
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...
shutdown is useful since it can be used to send a TCP FIN which in turn requires the other side to close the connection as well making it possible to...
If a socket is opened, but then never used, the garbage collector runs at exactly the wrong time, and an asynchronous exception is delivered at exactly the wrong time, then...
`socket` installs its finalizer using ```haskell _
I am currently trying to add systemd socket activation to my `socket`-based application. Therefore I have to construct a `Socket` from a file descriptor, similarly to `Network.Socket`'s [`mkSocket`](https://hackage.haskell.org/package/network-3.1.0.0/docs/Network-Socket.html#v:mkSocket) and also...
See http://udrepper.livejournal.com/20407.html