network-msg-0.1: Recvmsg and sendmsg bindings.
Network.Socket.Msg
Synopsis
data CMsg Source
Constructors
Fields
Instances
sendMsg :: Socket -> ByteString -> SockAddr -> [CMsg] -> IO ()Source
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).
recvMsg :: Socket -> Int -> IO (ByteString, SockAddr, [CMsg])Source
Receive data and put it into a bytestring.