class Gio::OutputMessage

Overview

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

Defined in:

lib/gi-crystal/src/auto/gio-2.0/output_message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(data : LibGio::OutputMessage, transfer : GICrystal::Transfer) #

[View source]
def self.new(num_vectors : UInt32 | Nil = nil, bytes_sent : UInt32 | Nil = nil, num_control_messages : UInt32 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) : Bool #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def address : Gio::SocketAddress | Nil #

[View source]
def address! #

[View source]
def bytes_sent : UInt32 #

[View source]
def bytes_sent=(value : UInt32) #

[View source]
def control_messages : Enumerable(Gio::SocketControlMessage) | Nil #

[View source]
def control_messages! #

[View source]
def num_control_messages : UInt32 #

[View source]
def num_control_messages=(value : UInt32) #

[View source]
def num_vectors : UInt32 #

[View source]
def num_vectors=(value : UInt32) #

[View source]
def to_unsafe #

[View source]
def vectors : Gio::OutputVector | Nil #

[View source]
def vectors! #

[View source]