Table of Contents

Class SocketAddress

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

SocketAddress(CreationData)

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

Parameters

data CreationData

SocketAddress(SocketAddressHandle)

protected SocketAddress(SocketAddressHandle handle)

Parameters

handle SocketAddressHandle

Fields

FamilyPropertyDefinition

public static readonly Property<SocketFamily, SocketAddress> FamilyPropertyDefinition

Field Value

Property<SocketFamily, SocketAddress>

Properties

Family

public SocketFamily Family { get; }

Property Value

SocketFamily

Methods

Enumerate()

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

Returns

SocketAddressEnumerator

GetFamily()

[Version("2.22")]
public SocketFamily GetFamily()

Returns

SocketFamily

GetGType()

public static Type GetGType()

Returns

Type

GetNativeSize()

[Version("2.22")]
public nint GetNativeSize()

Returns

nint

NewFromNative(nint, nuint)

[Version("2.22")]
public static SocketAddress NewFromNative(nint native, nuint len)

Parameters

native nint
len nuint

Returns

SocketAddress

NewFromPointer(nint, bool)

Creates a new managed SocketAddress instance for a given pointer.

public static SocketAddress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

SocketAddress

NewWithProperties(ConstructArgument[])

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

public static SocketAddress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

SocketAddress

ProxyEnumerate()

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

Returns

SocketAddressEnumerator

ToNative(nint, nuint)

[Version("2.22")]
public bool ToNative(nint dest, nuint destlen)

Parameters

dest nint
destlen nuint

Returns

bool

ToString()

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

Returns

string