Type Alias GOutputMessage

Source
pub type GOutputMessage = _GOutputMessage;
Expand description

GOutputMessage: @address: (nullable): a #GSocketAddress, or %NULL @vectors: pointer to an array of output vectors @num_vectors: the number of output vectors pointed to by @vectors. @bytes_sent: initialize to 0. Will be set to the number of bytes that have been sent @control_messages: (array length=num_control_messages) (nullable): a pointer to an array of #GSocketControlMessages, or %NULL. @num_control_messages: number of elements in @control_messages.

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 %NULL then the message is sent to the default receiver (as previously set by g_socket_connect()).

Since: 2.44

Aliased Type§

#[repr(C)]
pub struct GOutputMessage { pub address: *mut _GSocketAddress, pub vectors: *mut _GOutputVector, pub num_vectors: u32, pub bytes_sent: u32, pub control_messages: *mut *mut _GSocketControlMessage, pub num_control_messages: u32, }

Fields§

§address: *mut _GSocketAddress§vectors: *mut _GOutputVector§num_vectors: u32§bytes_sent: u32§control_messages: *mut *mut _GSocketControlMessage§num_control_messages: u32