Class SocketControlMessage
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class SocketControlMessage : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
SocketControlMessage
- Implements
- Derived
- Inherited Members
Constructors
SocketControlMessage(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public SocketControlMessage(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
SocketControlMessage(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected SocketControlMessage(CreationData data)
Parameters
dataCreationData
SocketControlMessage(SocketControlMessageHandle)
protected SocketControlMessage(SocketControlMessageHandle handle)
Parameters
handleSocketControlMessageHandle
Methods
Deserialize(int, int, Span<byte>)
[Version("2.22")]
public static SocketControlMessage? Deserialize(int level, int type, Span<byte> data)
Parameters
Returns
GetGType()
public static Type GetGType()
Returns
GetLevel()
[Version("2.22")]
public int GetLevel()
Returns
GetMsgType()
[Version("2.22")]
public int GetMsgType()
Returns
GetSize()
[Version("2.22")]
public nuint GetSize()
Returns
NewFromPointer(nint, bool)
Creates a new managed SocketControlMessage instance for a given pointer.
public static SocketControlMessage NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new SocketControlMessage and sets the properties specified by the construct arguments.
public static SocketControlMessage NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Serialize(nint)
[Version("2.22")]
public void Serialize(nint data)
Parameters
datanint