IPv6TclassMessage#
Added in version 2.88.
Superclasses: SocketControlMessage, Object
Contains the Traffic Class byte of an IPv6 header.
This consists of the DSCP field as per RFC 2474, and the ECN field as per RFC 3168.
It may be received using receive_message over UDP sockets
(i.e. sockets in the G_SOCKET_FAMILY_IPV6 family with
G_SOCKET_TYPE_DATAGRAM type). The message is not meant for sending. To set
Traffic Class field to be used in datagrams sent on a Socket use:
g_socket_set_option (socket, IPPROTO_IPV6, IPV6_TCLASS, <TC value>, &error);
Constructors#
- class IPv6TclassMessage
- classmethod new(dscp: int, ecn: EcnCodePoint) SocketControlMessage#
Creates a new traffic class message with given DSCP and ECN values.
Added in version 2.88.
- Parameters:
dscp – the DSCP value of the message
ecn – the ECN value of the message
Methods#
- class IPv6TclassMessage
- get_dscp() int#
Gets the differentiated services code point stored in
message.Added in version 2.88.
- get_ecn() EcnCodePoint#
Gets the Explicit Congestion Notification code point stored in
message.Added in version 2.88.