-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Recvmsg and sendmsg bindings. -- -- Bindings to sendmsg and recvmsg POSIX functions. @package network-msg @version 0.1 module Network.Socket.Msg data CMsg CMsg :: Int -> Int -> ByteString -> CMsg cmsgLevel :: CMsg -> Int cmsgType :: CMsg -> Int cmsgData :: CMsg -> ByteString -- | Sends the data contained in the bytestring to the specified address. -- The last argument is a list of control parameters (see cmsg(3) for -- details). sendMsg :: Socket -> ByteString -> SockAddr -> [CMsg] -> IO () -- | Receive data and put it into a bytestring. recvMsg :: Socket -> Int -> IO (ByteString, SockAddr, [CMsg])