gi-gio-2.0.24: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Structs.OutputMessage

Contents

Description

Structure used for scatter/gather data output when sending multiple messages or packets in one go. You generally pass in an array of GOutputVectors and the operation will use all the buffers as if they were one buffer.

If address is Nothing then the message is sent to the default receiver (as previously set by socketConnect).

Since: 2.44

Synopsis

Exported types

newZeroOutputMessage :: MonadIO m => m OutputMessage Source #

Construct a OutputMessage struct initialized to zero.

Properties

address

clearOutputMessageAddress :: MonadIO m => OutputMessage -> m () Source #

Set the value of the “address” field to Nothing. When overloading is enabled, this is equivalent to

clear #address

getOutputMessageAddress :: MonadIO m => OutputMessage -> m (Maybe SocketAddress) Source #

Get the value of the “address” field. When overloading is enabled, this is equivalent to

get outputMessage #address

setOutputMessageAddress :: MonadIO m => OutputMessage -> Ptr SocketAddress -> m () Source #

Set the value of the “address” field. When overloading is enabled, this is equivalent to

set outputMessage [ #address := value ]

bytesSent

initialize to 0. Will be set to the number of bytes that have been sent

getOutputMessageBytesSent :: MonadIO m => OutputMessage -> m Word32 Source #

Get the value of the “bytes_sent” field. When overloading is enabled, this is equivalent to

get outputMessage #bytesSent

setOutputMessageBytesSent :: MonadIO m => OutputMessage -> Word32 -> m () Source #

Set the value of the “bytes_sent” field. When overloading is enabled, this is equivalent to

set outputMessage [ #bytesSent := value ]

numControlMessages

number of elements in controlMessages.

getOutputMessageNumControlMessages :: MonadIO m => OutputMessage -> m Word32 Source #

Get the value of the “num_control_messages” field. When overloading is enabled, this is equivalent to

get outputMessage #numControlMessages

setOutputMessageNumControlMessages :: MonadIO m => OutputMessage -> Word32 -> m () Source #

Set the value of the “num_control_messages” field. When overloading is enabled, this is equivalent to

set outputMessage [ #numControlMessages := value ]

numVectors

the number of output vectors pointed to by vectors.

getOutputMessageNumVectors :: MonadIO m => OutputMessage -> m Word32 Source #

Get the value of the “num_vectors” field. When overloading is enabled, this is equivalent to

get outputMessage #numVectors

setOutputMessageNumVectors :: MonadIO m => OutputMessage -> Word32 -> m () Source #

Set the value of the “num_vectors” field. When overloading is enabled, this is equivalent to

set outputMessage [ #numVectors := value ]

vectors

pointer to an array of output vectors

clearOutputMessageVectors :: MonadIO m => OutputMessage -> m () Source #

Set the value of the “vectors” field to Nothing. When overloading is enabled, this is equivalent to

clear #vectors

getOutputMessageVectors :: MonadIO m => OutputMessage -> m (Maybe OutputVector) Source #

Get the value of the “vectors” field. When overloading is enabled, this is equivalent to

get outputMessage #vectors

setOutputMessageVectors :: MonadIO m => OutputMessage -> Ptr OutputVector -> m () Source #

Set the value of the “vectors” field. When overloading is enabled, this is equivalent to

set outputMessage [ #vectors := value ]