network-msg-0.1: Recvmsg and sendmsg bindings.

Safe HaskellNone

Network.Socket.Msg

Synopsis

Documentation

data CMsg Source

Constructors

CMsg 

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.