This GLib::SocketControlMessage contains a GLib::UnixFDList?. It may be sent using GLib::Socket#send_message and received using GLib::Socket#receive_message over Unix sockets (that is, sockets in the GLib::Socket::ADDRESS_UNIX family). The file descriptors are copied between processes by the kernel.
Note that GLib::UnixFDMessage belongs to the Unix-specific GIO interfaces.
- Same as GLib::UnixFDMessage#append_fd.
Adds a file descriptor to message.
The file descriptor is duplicated using dup(). You keep your copy of the descriptor and the copy contained in message will be closed when message is finalized.
A possible cause of failure is exceeding the per-process or system-wide file descriptor limit.
A GLib::IO::Error is raised if the file descriptor can’t be duplicated.
- Returns: self
Gets the GLib::UnixFDList? object to send with the message.
- Returns: The GLib::UnixFDList? object to send with the message
Returns the Array of file descriptors that is contained in this object.
After this call, the descriptors are no longer contained in message. Further calls will return an empty Array (unless more descriptors have been added).
The caller is responsible for closing all of the file descriptors.
- Returns: An Array of file descriptors