gio.unix_fdmessage
Module for [UnixFDMessage] class
Types 3
This [gio.socket_control_message.SocketControlMessage] contains a [gio.unix_fdlist.UnixFDList]. It may be sent using [gio.socket.Socket.sendMessage] and received using [gio.socket.Socket.receiveMessage] over UNIX sockets (ie: sockets in the [gio.types.SocketFamily.Unix] family). The file descriptors are copied between processes by the kernel.
For an easier way to send and receive file descriptors over stream-oriented UNIX sockets, see [gio.unix_connection.UnixConnection.sendFd] and [gio.unix_connection.UnixConnection.receiveFd].
Note that <gio/gunixfdmessage.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file or the GioUnix-2.0 GIR namespace when using it.
UnixFDMessage self()Returns `this`, for use in `with` statements.UnixFDMessageGidBuilder builder()Get builder for [gio.unix_fdmessage.UnixFDMessage] Returns: New builder objectgio.unix_fdlist.UnixFDList fdList() @propertyGet `fdList` property. Returns: The [gio.unix_fdlist.UnixFDList] object to send with the message.gio.unix_fdmessage.UnixFDMessage newWithFdList(gio.unix_fdlist.UnixFDList fdList)Creates a new #GUnixFDMessage containing list.bool appendFd(int fd)Adds a file descriptor to message.gio.unix_fdlist.UnixFDList getFdList()Gets the #GUnixFDList contained in message. This function does not return a reference to the caller, but the returned list is valid for the lifetime of message. Returns: the #GUnixFDList from messageint[] stealFds()Returns the array of file descriptors that is contained in this object.T fdList(gio.unix_fdlist.UnixFDList propval)Set `fdList` property. Params: propval = The [gio.unix_fdlist.UnixFDList] object to send with the message. Returns: Builder instance for fluent chainingFluent builder for [gio.unix_fdmessage.UnixFDMessage]