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) #

def self.new(data : LibGio::OutputMessage, transfer : GICrystal::Transfer) #

def self.new(num_vectors : UInt32? = nil, bytes_sent : UInt32? = nil, num_control_messages : UInt32? = nil) #

Instance Method Detail

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

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


def address : Gio::SocketAddress? #

def address! #

def bytes_sent : UInt32 #

def bytes_sent=(value : UInt32) #

def control_messages : Enumerable(Gio::SocketControlMessage)? #

def control_messages! #

def num_control_messages : UInt32 #

def num_control_messages=(value : UInt32) #

def num_vectors : UInt32 #

def num_vectors=(value : UInt32) #

def to_unsafe #

def vectors : Gio::OutputVector? #

def vectors! #