receive_fd


Description:

public int receive_fd (Cancellable? cancellable = null) throws Error

Receives a file descriptor from the sending end of the connection.

The sending end has to call send_fd for this to work.

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

Parameters:

this

a UnixConnection

cancellable

optional Cancellable object, null to ignore

Returns:

a file descriptor on success, -1 on error.




2022 vala-language.org