OutputMessage

class OutputMessage(    val gioOutputMessagePointer: <Error class: unknown class><<Error class: unknown class>>,     cleaner: <Error class: unknown class>? = null)

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()).

Skipped during bindings generation

  • field control_messages: Array parameter of type SocketControlMessage is not supported

Since

2.44

Constructors

Link copied to clipboard
constructor()

Allocate a new OutputMessage.

constructor(scope: <Error class: unknown class>)

Allocate a new OutputMessage using the provided AutofreeScope.

constructor(    address: SocketAddress?,     vectors: OutputVector?,     numVectors: <Error class: unknown class>,     bytesSent: <Error class: unknown class>,     numControlMessages: <Error class: unknown class>)

Allocate a new OutputMessage.

constructor(    address: SocketAddress?,     vectors: OutputVector?,     numVectors: <Error class: unknown class>,     bytesSent: <Error class: unknown class>,     numControlMessages: <Error class: unknown class>,     scope: <Error class: unknown class>)

Allocate a new OutputMessage using the provided AutofreeScope.

constructor(gioOutputMessagePointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard

a #GSocketAddress, or null

Link copied to clipboard
var bytesSent: <Error class: unknown class>

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

Link copied to clipboard
val gioOutputMessagePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var numControlMessages: <Error class: unknown class>

number of elements in @control_messages.

Link copied to clipboard
var numVectors: <Error class: unknown class>

the number of output vectors pointed to by @vectors.

Link copied to clipboard

pointer to an array of output vectors

Functions

Link copied to clipboard
open override fun toString(): String