Class: Gio::IPTosMessage

Inherits:
SocketControlMessage show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from SocketControlMessage

deserialize, #level, #msg_type, #serialize, #size

Constructor Details

#initialize(dscp, ecn) ⇒ Gio::SocketControlMessage

Creates a new type-of-service message with given DSCP and ECN values.

Parameters:

  • dscp (Integer) —

    the DSCP value of the message

  • ecn (Gio::EcnCodePoint) —

    the ECN value of the message

Instance Method Details

#dscp ⇒ Integer

Gets the differentiated services code point stored in message.

Returns:

  • (Integer) —

    A DSCP value as described in RFC 2474.

#ecn ⇒ Gio::EcnCodePoint

Gets the Explicit Congestion Notification code point stored in message.

Returns: