Table of Contents

Class SocketAddress

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class SocketAddress
Inheritance
SocketAddress
Inherited Members

Methods

GetFamily(IntPtr)

Calls native method g_socket_address_get_family. Version: 2.22

[Version("2.22")]
public static extern SocketFamily GetFamily(IntPtr address)

Parameters

address IntPtr

Transfer ownership: None Nullable: False

Returns

SocketFamily

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_socket_address_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetNativeSize(IntPtr)

Calls native method g_socket_address_get_native_size. Version: 2.22

[Version("2.22")]
public static extern long GetNativeSize(IntPtr address)

Parameters

address IntPtr

Transfer ownership: None Nullable: False

Returns

long

Transfer ownership: None Nullable: False

NewFromNative(IntPtr, nuint)

Calls native constructor g_socket_address_new_from_native. Version: 2.22

[Version("2.22")]
public static extern IntPtr NewFromNative(IntPtr native, nuint len)

Parameters

native IntPtr

Transfer ownership: None Nullable: False

len nuint

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

ToNative(IntPtr, IntPtr, nuint, out ErrorOwnedHandle)

Calls native method g_socket_address_to_native. Version: 2.22

[Version("2.22")]
public static extern bool ToNative(IntPtr address, IntPtr dest, nuint destlen, out ErrorOwnedHandle error)

Parameters

address IntPtr

Transfer ownership: None Nullable: False

dest IntPtr

Transfer ownership: None Nullable: True

destlen nuint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False