Class IPv6TclassMessage
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.SocketControlMessage
org.gnome.gio.IPv6TclassMessage
- All Implemented Interfaces:
Proxy
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 Socket.receiveMessage(Out, InputVector[], Out, Out, Cancellable) 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);
- Since:
- 2.88
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIPv6TclassMessage.Builder<B extends IPv6TclassMessage.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class SocketControlMessage
SocketControlMessage.SocketControlMessage$Impl, SocketControlMessage.SocketControlMessageClassNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new IPv6TclassMessage.IPv6TclassMessage(byte dscp, EcnCodePoint ecn) Creates a new traffic class message with given DSCP and ECN values.IPv6TclassMessage(MemorySegment address) Create a IPv6TclassMessage instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionprotected IPv6TclassMessageasParent()Return this instance as if it were its parent type.static IPv6TclassMessage.Builder<? extends IPv6TclassMessage.Builder> builder()AIPv6TclassMessage.Builderobject constructs aIPv6TclassMessagewith the specified properties.bytegetDscp()Gets the differentiated services code point stored inmessage.getEcn()Gets the Explicit Congestion Notification code point stored inmessage.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the IPv6TclassMessage class.Methods inherited from class SocketControlMessage
deserialize, getLevel, getMsgType, getSize, serializeMethods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
IPv6TclassMessage
Create a IPv6TclassMessage instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
IPv6TclassMessage
Creates a new traffic class message with given DSCP and ECN values.- Parameters:
dscp- the DSCP value of the messageecn- the ECN value of the message- Since:
- 2.88
-
IPv6TclassMessage
public IPv6TclassMessage()Create a new IPv6TclassMessage.
-
-
Method Details
-
getType
Get the GType of the IPv6TclassMessage class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classSocketControlMessage- Returns:
- the instance as if it were its parent type
-
getDscp
public byte getDscp()Gets the differentiated services code point stored inmessage.- Returns:
- A DSCP value as described in RFC 2474.
- Since:
- 2.88
-
getEcn
Gets the Explicit Congestion Notification code point stored inmessage.- Returns:
- An ECN value as described in RFC 3168.
- Since:
- 2.88
-
builder
AIPv6TclassMessage.Builderobject constructs aIPv6TclassMessagewith the specified properties. Use the variousset...()methods to set properties, and finish construction withIPv6TclassMessage.Builder.build().- Returns:
- the builder object
-