UnixConnection.sendFd

Passes a file descriptor to the receiving side of the connection. The receiving end has to call UnixConnection.receiveFd to accept the file descriptor.

As well as sending the fd this also writes a single byte to the stream, as this is required for fd passing to work on some implementations.

class UnixConnection
bool
sendFd

Parameters

fd int

a file descriptor

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore.

Return Value

Type: bool

a TRUE on success, NULL on error.

Throws

GException on failure.

Meta

Since

2.22