Gio.IPv6TclassMessage

g GObject.Object GObject.Object Gio.SocketControlMessage Gio.SocketControlMessage GObject.Object->Gio.SocketControlMessage Gio.IPv6TclassMessage Gio.IPv6TclassMessage Gio.SocketControlMessage->Gio.IPv6TclassMessage

Subclasses:

None

Methods

Inherited:

Gio.SocketControlMessage (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (dscp, ecn)

get_dscp ()

get_ecn ()

Virtual Methods

Inherited:

Gio.SocketControlMessage (4), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gio.IPv6TclassMessage(**kwargs)
Bases:

Gio.SocketControlMessage

Abstract:

No

Structure:

Gio.IPv6TclassMessageClass

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 [method`Gio`.Socket.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 [class`Gio`.Socket] use: ``c g_socket_set_option (socket, IPPROTO_IPV6, IPV6_TCLASS, <TC value>, &error); ``

New in version 2.88.

classmethod new(dscp, ecn)[source]
Parameters:
  • dscp (int) – the DSCP value of the message

  • ecn (Gio.EcnCodePoint) – the ECN value of the message

Returns:

a new traffic class message

Return type:

Gio.SocketControlMessage

Creates a new traffic class message with given DSCP and ECN values.

New in version 2.88.

get_dscp()[source]
Returns:

A DSCP value as described in RFC 2474.

Return type:

int

Gets the differentiated services code point stored in self.

New in version 2.88.

get_ecn()[source]
Returns:

An ECN value as described in RFC 3168.

Return type:

Gio.EcnCodePoint

Gets the Explicit Congestion Notification code point stored in self.

New in version 2.88.