UnixConnection.sendFd

bool sendFd(int fd, gio.cancellable.Cancellable cancellable = null)

Passes a file descriptor to the receiving side of the connection. The receiving end has to call [gio.unix_connection.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.

Parameters

fda file descriptor
cancellableoptional #GCancellable object, null to ignore.

Returns

a true on success, null on error.

Throws

[ErrorWrap]