Stability | experimental |
---|---|
Portability | Linux, OS X |
Safe Haskell | None |
Language | Haskell2010 |
System.Socket.Family.Unix
Contents
Description
Synopsis
- data Unix
- data family SocketAddress f
- data family SocketAddress f
- socketAddressUnixPath :: ByteString -> Maybe (SocketAddress Unix)
- socketAddressUnixAbstract :: ByteString -> Maybe (SocketAddress Unix)
- getUnixPath :: SocketAddress Unix -> Maybe ByteString
- eNoEntry :: SocketException
Documentation
Instances
Family Unix # | |||||
Defined in System.Socket.Family.Unix.Platform Associated Types
Methods familyNumber :: Unix -> CInt # | |||||
Storable (SocketAddress Unix) # | |||||
Defined in System.Socket.Family.Unix.Platform Methods sizeOf :: SocketAddress Unix -> Int # alignment :: SocketAddress Unix -> Int # peekElemOff :: Ptr (SocketAddress Unix) -> Int -> IO (SocketAddress Unix) # pokeElemOff :: Ptr (SocketAddress Unix) -> Int -> SocketAddress Unix -> IO () # peekByteOff :: Ptr b -> Int -> IO (SocketAddress Unix) # pokeByteOff :: Ptr b -> Int -> SocketAddress Unix -> IO () # peek :: Ptr (SocketAddress Unix) -> IO (SocketAddress Unix) # poke :: Ptr (SocketAddress Unix) -> SocketAddress Unix -> IO () # | |||||
Show (SocketAddress Unix) # | |||||
Defined in System.Socket.Family.Unix.Platform | |||||
Eq (SocketAddress Unix) # | |||||
Defined in System.Socket.Family.Unix.Platform Methods (==) :: SocketAddress Unix -> SocketAddress Unix -> Bool # (/=) :: SocketAddress Unix -> SocketAddress Unix -> Bool # | |||||
data SocketAddress Unix # | |||||
data family SocketAddress f #
The SocketAddress
type is a data family.
This allows to provide different data constructors depending on the socket
family without knowing all of them in advance or the need to extend this
core library.
SocketAddressInet inetLoopback 8080 :: SocketAddress Inet SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6
Instances
data family SocketAddress f #
The SocketAddress
type is a data family.
This allows to provide different data constructors depending on the socket
family without knowing all of them in advance or the need to extend this
core library.
SocketAddressInet inetLoopback 8080 :: SocketAddress Inet SocketAddressInet6 inet6Loopback 8080 0 0 :: SocketAddress Inet6
Instances
socketAddressUnixPath :: ByteString -> Maybe (SocketAddress Unix) #
Creates address which is connected to a filesystem pathname.
Returns Nothing if path
's length exceeds maximal supported.
socketAddressUnixAbstract :: ByteString -> Maybe (SocketAddress Unix) #
Creates address with name in abstract namespace.
Returns Nothing if path
's length exceeds maximal supported.
getUnixPath :: SocketAddress Unix -> Maybe ByteString #
Returns filesystem pathname where address is connected to.
Exceptions
SocketException "No such file or directory"