enum Gio::SocketType

Overview

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

Defined in:

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

Instance Method Summary

Instance Method Detail

def datagram? #

def invalid? #

def seqpacket? #

def stream? #