enum Gio::SocketProtocol

Overview

A protocol identifier is specified when creating a #GSocket, which is a family/type specific identifier, where 0 means the default protocol for the particular family/type.

This enum contains a set of commonly available and used protocols. You can also pass any other identifiers handled by the platform in order to use protocols not listed here.

Defined in:

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

Enum Members

Unknown = -1

The protocol type is unknown

Default = 0

The default protocol for the family/type

Tcp = 6

TCP over IP

Udp = 17

UDP over IP

Sctp = 132

SCTP over IP

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 default? #

[View source]
def sctp? #

[View source]
def tcp? #

[View source]
def udp? #

[View source]
def unknown? #

[View source]