1.44 <GIPv6TclassMessage>

Class: <GIPv6TclassMessage>

It derives from <GSocketControlMessage>.

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 Gio.Socket.receive_message over UDP sockets (i.e. sockets in the ipv6 family with datagram type). The message is not meant for sending. To set Traffic Class field to be used in datagrams sent on a <GSocket> use:

g_socket_set_option (socket, IPPROTO_IPV6, IPV6_TCLASS, <TC value>, &error);

Procedures

Method: ipv6tclass-message:get-dscp self ⇒ %return
Method: get-dscp self ⇒ %return

Gets the differentiated services code point stored in self.

self

Passed: a <GIPv6TclassMessage>.

a traffic class message

%return

Returned: an unsigned 8-bit integer.

A DSCP value as described in RFC 2474.

Method: ipv6tclass-message:get-ecn self ⇒ %return
Method: get-ecn self ⇒ %return

Gets the Explicit Congestion Notification code point stored in self.

self

Passed: a <GIPv6TclassMessage>.

a traffic class message

%return

Returned: a <GEcnCodePoint>.

An ECN value as described in RFC 3168.

Procedure: ipv6tclass-message:new dscp ecn ⇒ %return

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

dscp

Passed: an unsigned 8-bit integer, or a character.

the DSCP value of the message

ecn

Passed: a <GEcnCodePoint>, or one of its symbols.

the ECN value of the message

%return

Returned: a <GSocketControlMessage>.

a new traffic class message