It derives from
<GSocketControlMessage>.
Contains the type of service (ToS) byte of an IPv4 header.
This consists of the DSCP field as per RFC 2474, and the ECN field as per RFC 3168.
It may be received using Gio.Socket.receive_message over UDP
sockets (i.e. sockets in the ipv4 family
with datagram type). The message is not meant
for sending. To set ToS field to be used in datagrams sent on a
<GSocket> use:
g_socket_set_option (socket, IPPROTO_IP, IP_TOS, <ToS value>, &error);
Gets the differentiated services code point stored in self.
Passed: a <GIPTosMessage>.
a type-of-service message
Returned: an unsigned 8-bit integer.
A DSCP value as described in RFC 2474.
Gets the Explicit Congestion Notification code point stored in self.
Passed: a <GIPTosMessage>.
a type-of-service message
Returned: a <GEcnCodePoint>.
An ECN value as described in RFC 3168.
Creates a new type-of-service message with given DSCP and ECN values.
Passed: an unsigned 8-bit integer, or a character.
the DSCP value of the message
Passed: a <GEcnCodePoint>, or one of its
symbols.
the ECN value of the message
Returned: a <GSocketControlMessage>.
a new type-of-service message