enum Gio::SocketType

Overview

Flags used when creating a #GSocket. Some protocols may not implement all the socket types.

Defined in:

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

Enum Members

Invalid = 0_u32

Type unknown or wrong

Stream = 1_u32

Reliable connection-based byte streams (e.g. TCP).

Datagram = 2_u32

Connectionless, unreliable datagram passing. (e.g. UDP)

Seqpacket = 3_u32

Reliable connection-based passing of datagrams of fixed maximum length (e.g. SCTP).

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def datagram? #

def invalid? #

def seqpacket? #

def stream? #