Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Unix
- data family SocketAddress f :: *
- socketAddressUnixPath :: ByteString -> Maybe (SocketAddress Unix)
- socketAddressUnixAbstract :: ByteString -> Maybe (SocketAddress Unix)
- getUnixPath :: SocketAddress Unix -> Maybe ByteString
Documentation
data family SocketAddress f :: * #
The SocketAddress
type is a data family.
This allows to provide different data constructors depending on the socket
family wihtout knowing all of them in advance or the need to patch this
core library.
SocketAddressInet inetLoopback 8080 :: SocketAddress Inet SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6
Eq (SocketAddress Unix) # | |
Show (SocketAddress Unix) # | |
Storable (SocketAddress Unix) # | |
data SocketAddress Unix # | A Unix socket address |
socketAddressUnixPath :: ByteString -> Maybe (SocketAddress Unix) Source #
Creates address which is connected to a filesystem pathname.
Returns Nothing if path
's length exceeds maximal supported.
socketAddressUnixAbstract :: ByteString -> Maybe (SocketAddress Unix) Source #
Creates address with name in abstract namespace.
Returns Nothing if path
's length exceeds maximal supported.
getUnixPath :: SocketAddress Unix -> Maybe ByteString Source #
Returns filesystem pathname where address is connected to.