enum Gio::SocketType


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

Defined in:


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.

[View source]

Instance Method Detail

def datagram? #

[View source]
def invalid? #

[View source]
def seqpacket? #

[View source]
def stream? #

[View source]