gi-gio-2.0.10: Gio bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.InputMessage

Contents

Description

Structure used for scatter/gather data input when receiving multiple messages or packets in one go. You generally pass in an array of empty #GInputVectors and the operation will use all the buffers as if they were one buffer, and will set @bytes_received to the total number of bytes received across all #GInputVectors.

This structure closely mirrors `struct mmsghdr` and `struct msghdr` from the POSIX sockets API (see `man 2 recvmmsg`).

If @address is non-%NULL then it is set to the source address the message was received from, and the caller must free it afterwards.

If control_messages is non-%NULL then it is set to an array of control messages received with the message (if any), and the caller must free it afterwards. num_control_messages is set to the number of elements in this array, which may be zero.

Flags relevant to this message will be returned in @flags. For example, MSG_EOR or MSG_TRUNC.

Synopsis

Exported types

newtype InputMessage Source #

Constructors

InputMessage (ManagedPtr InputMessage) 

Instances

WrappedPtr InputMessage Source # 
(~) AttrOpTag tag AttrSet => Constructible InputMessage tag Source # 

Methods

new :: MonadIO m => (ManagedPtr InputMessage -> InputMessage) -> [AttrOp InputMessage tag] -> m InputMessage

((~) * info (ResolveInputMessageMethod t InputMessage), MethodInfo * info InputMessage p) => IsLabel t (InputMessage -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> InputMessage -> p #

((~) * info (ResolveInputMessageMethod t InputMessage), MethodInfo * info InputMessage p) => IsLabelProxy t (InputMessage -> p) Source # 
HasAttributeList * InputMessage Source # 
type AttributeList InputMessage Source # 
type AttributeList InputMessage

newZeroInputMessage :: MonadIO m => m InputMessage Source #

Construct a InputMessage struct initialized to zero.

Properties

address

inputMessage_address :: AttrLabelProxy "address" Source #

bytesReceived

inputMessage_bytesReceived :: AttrLabelProxy "bytesReceived" Source #

flags

inputMessage_flags :: AttrLabelProxy "flags" Source #

numControlMessages

inputMessage_numControlMessages :: AttrLabelProxy "numControlMessages" Source #

numVectors

inputMessage_numVectors :: AttrLabelProxy "numVectors" Source #