Gio.IPTosMessage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.IPTosMessage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 [method`Gio`.Socket.receive_message] over UDP sockets (i.e. sockets in the
G_SOCKET_FAMILY_IPV4family withG_SOCKET_TYPE_DATAGRAMtype). The message is not meant for sending. To set ToS field to be used in datagrams sent on a [class`Gio`.Socket] use: ``c g_socket_set_option (socket, IPPROTO_IP, IP_TOS, <ToS value>, &error); ``New in version 2.88.
- classmethod new(dscp, ecn)[source]¶
- Parameters:
dscp (
int) – the DSCP value of the messageecn (
Gio.EcnCodePoint) – the ECN value of the message
- Returns:
a new type-of-service message
- Return type:
Creates a new type-of-service message with given DSCP and ECN values.
New in version 2.88.
- get_dscp()[source]¶
-
Gets the differentiated services code point stored in self.
New in version 2.88.