sendFd

open fun sendFd(fd: Int, cancellable: Cancellable? = null): <Error class: unknown class><Boolean>

Passes a file descriptor to the receiving side of the connection. The receiving end has to call g_unix_connection_receive_fd() 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.

Return

a true on success, null on error.

Since

2.22

Parameters

fd

a file descriptor

cancellable

optional #GCancellable object, null to ignore.