Table of Contents

Class UnixConnection

Namespace
Gio
Assembly
Gio-2.0.dll
public class UnixConnection : SocketConnection, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
UnixConnection
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

UnixConnection(CreationData)

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

Parameters

data CreationData

UnixConnection(UnixConnectionHandle)

protected UnixConnection(UnixConnectionHandle handle)

Parameters

handle UnixConnectionHandle

Methods

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed UnixConnection instance for a given pointer.

public static UnixConnection NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

UnixConnection

NewWithProperties(ConstructArgument[])

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

public static UnixConnection NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

UnixConnection

ReceiveCredentials(Cancellable?)

[Version("2.26")]
public Credentials ReceiveCredentials(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

Credentials

ReceiveCredentialsFinish(AsyncResult)

[Version("2.32")]
public Credentials ReceiveCredentialsFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

Credentials

ReceiveFd(Cancellable?)

[Version("2.22")]
public int ReceiveFd(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

int

SendCredentials(Cancellable?)

[Version("2.26")]
public bool SendCredentials(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

SendCredentialsFinish(AsyncResult)

[Version("2.32")]
public bool SendCredentialsFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

SendFd(int, Cancellable?)

[Version("2.22")]
public bool SendFd(int fd, Cancellable? cancellable)

Parameters

fd int
cancellable Cancellable

Returns

bool