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.crEnum 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
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#default?
Returns
trueif this enum value equalsDefault -
#sctp?
Returns
trueif this enum value equalsSctp -
#tcp?
Returns
trueif this enum value equalsTcp -
#udp?
Returns
trueif this enum value equalsUdp -
#unknown?
Returns
trueif this enum value equalsUnknown
Class methods inherited from struct Enum
g_type : UInt64
g_type
Class Method Detail
Returns the type id (GType) registered in GLib type system.