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
constructArgumentsConstructArgument[]
UnixConnection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected UnixConnection(CreationData data)
Parameters
dataCreationData
UnixConnection(UnixConnectionHandle)
protected UnixConnection(UnixConnectionHandle handle)
Parameters
handleUnixConnectionHandle
Methods
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed UnixConnection instance for a given pointer.
public static UnixConnection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new UnixConnection and sets the properties specified by the construct arguments.
public static UnixConnection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReceiveCredentials(Cancellable?)
[Version("2.26")]
public Credentials ReceiveCredentials(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReceiveCredentialsFinish(AsyncResult)
[Version("2.32")]
public Credentials ReceiveCredentialsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
ReceiveFd(Cancellable?)
[Version("2.22")]
public int ReceiveFd(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
SendCredentials(Cancellable?)
[Version("2.26")]
public bool SendCredentials(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
SendCredentialsFinish(AsyncResult)
[Version("2.32")]
public bool SendCredentialsFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
SendFd(int, Cancellable?)
[Version("2.22")]
public bool SendFd(int fd, Cancellable? cancellable)
Parameters
fdintcancellableCancellable