Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.SocketCAN.LowLevel
Documentation
Close the socket. This function does not throw exceptions even if the underlying system call returns errors.
If multiple threads use the same socket and one uses unsafeFdSocket
and
the other use close
, unexpected behavior may happen.
For more information, please refer to the documentation of unsafeFdSocket
.
Address families. The AF_xxxxx
constants are widely used as synonyms
for the corresponding PF_xxxxx
protocol family values, to which they are
numerically equal in mainstream socket API implementations.
Strictly correct usage would be to pass the PF_xxxxx
constants as the first
argument when creating a Socket
, while the AF_xxxxx
constants should be
used as addrFamily
values with getAddrInfo
. For now only the AF_xxxxx
constants are provided.
Some of the defined patterns may be unsupported on some systems:
see isSupportedFamily
.
Basic type for a socket.
Instances
Show Socket | |
Eq Socket | |
Monad m => MonadReader Socket (SocketCANT m) Source # | |
Defined in Network.SocketCAN Methods ask :: SocketCANT m Socket # local :: (Socket -> Socket) -> SocketCANT m a -> SocketCANT m a # reader :: (Socket -> a) -> SocketCANT m a # |