Table of Contents

Class NativeSocketAddress

Namespace
Gio
Assembly
Gio-2.0.dll
public class NativeSocketAddress : SocketAddress, SocketConnectable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
Inheritance
NativeSocketAddress
Implements
Inherited Members

Constructors

NativeSocketAddress(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 NativeSocketAddress(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

NativeSocketAddress(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected NativeSocketAddress(CreationData data)

Parameters

data CreationData

NativeSocketAddress(NativeSocketAddressHandle)

protected NativeSocketAddress(NativeSocketAddressHandle handle)

Parameters

handle NativeSocketAddressHandle

Methods

Enumerate()

[Version("2.22")]
public SocketAddressEnumerator Enumerate()

Returns

SocketAddressEnumerator

GetGType()

public static Type GetGType()

Returns

Type

New(nint, nuint)

[Version("2.46")]
public static NativeSocketAddress New(nint native, nuint len)

Parameters

native nint
len nuint

Returns

NativeSocketAddress

NewFromPointer(nint, bool)

Creates a new managed NativeSocketAddress instance for a given pointer.

public static NativeSocketAddress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

NativeSocketAddress

NewWithProperties(ConstructArgument[])

Creates a new NativeSocketAddress and sets the properties specified by the construct arguments.

public static NativeSocketAddress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

NativeSocketAddress

ProxyEnumerate()

[Version("2.26")]
public SocketAddressEnumerator ProxyEnumerate()

Returns

SocketAddressEnumerator

ToString()

[Version("2.48")]
public string ToString()

Returns

string