Table of Contents

Class UnixSocketAddress

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

Constructors

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

Parameters

constructArguments ConstructArgument[]

UnixSocketAddress(CreationData)

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

Parameters

data CreationData

UnixSocketAddress(UnixSocketAddressHandle)

protected UnixSocketAddress(UnixSocketAddressHandle handle)

Parameters

handle UnixSocketAddressHandle

Fields

AbstractPropertyDefinition

public static readonly Property<bool, UnixSocketAddress> AbstractPropertyDefinition

Field Value

Property<bool, UnixSocketAddress>

AddressTypePropertyDefinition

public static readonly Property<UnixSocketAddressType, UnixSocketAddress> AddressTypePropertyDefinition

Field Value

Property<UnixSocketAddressType, UnixSocketAddress>

PathPropertyDefinition

public static readonly Property<string?, UnixSocketAddress> PathPropertyDefinition

Field Value

Property<string, UnixSocketAddress>

Properties

Abstract

public bool Abstract { get; }

Property Value

bool

AddressType

public UnixSocketAddressType AddressType { get; }

Property Value

UnixSocketAddressType

Path

public string? Path { get; }

Property Value

string

Methods

AbstractNamesSupported()

[Version("2.22")]
public static bool AbstractNamesSupported()

Returns

bool

Enumerate()

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

Returns

SocketAddressEnumerator

GetAddressType()

[Version("2.26")]
public UnixSocketAddressType GetAddressType()

Returns

UnixSocketAddressType

GetGType()

public static Type GetGType()

Returns

Type

GetIsAbstract()

[Version("2.22")]
public bool GetIsAbstract()

Returns

bool

GetPath()

[Version("2.22")]
public string GetPath()

Returns

string

GetPathLen()

[Version("2.22")]
public nuint GetPathLen()

Returns

nuint

New(string)

[Version("2.22")]
public static UnixSocketAddress New(string path)

Parameters

path string

Returns

UnixSocketAddress

NewAbstract(Span<sbyte>)

public static UnixSocketAddress NewAbstract(Span<sbyte> path)

Parameters

path Span<sbyte>

Returns

UnixSocketAddress

NewFromPointer(nint, bool)

Creates a new managed UnixSocketAddress instance for a given pointer.

public static UnixSocketAddress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

UnixSocketAddress

NewWithProperties(ConstructArgument[])

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

public static UnixSocketAddress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

UnixSocketAddress

NewWithType(Span<sbyte>, UnixSocketAddressType)

[Version("2.26")]
public static UnixSocketAddress NewWithType(Span<sbyte> path, UnixSocketAddressType type)

Parameters

path Span<sbyte>
type UnixSocketAddressType

Returns

UnixSocketAddress

ProxyEnumerate()

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

Returns

SocketAddressEnumerator

ToString()

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

Returns

string