gio.unix_fdlist
Module for [UnixFDList] class
Types 3
A [gio.unix_fdlist.UnixFDList] contains a list of file descriptors. It owns the file descriptors that it contains, closing them when finalized.
It may be wrapped in a [[gio.unix_fdmessage.UnixFDMessage]](../gio-unix/class.UnixFDMessage.html) and sent over a [gio.socket.Socket] in the [gio.types.SocketFamily.Unix] family by using [gio.socket.Socket.sendMessage] and received using [gio.socket.Socket.receiveMessage].
Before 2.74, <gio/gunixfdlist.h> belonged to the UNIX-specific GIO interfaces, thus you had to use the gio-unix-2.0.pc pkg-config file when using it.
Since 2.74, the API is available for Windows.
Methods
UnixFDList self()Returns `this`, for use in `with` statements.UnixFDListGidBuilder builder()Get builder for [gio.unix_fdlist.UnixFDList] Returns: New builder objectgio.unix_fdlist.UnixFDList newFromArray(int[] fds)Creates a new #GUnixFDList containing the file descriptors given in fds. The file descriptors become the property of the new list and may no longer be used by the caller. The array itself is owne...int append(int fd)Adds a file descriptor to list.int get(int index)Gets a file descriptor out of list.int getLength()Gets the length of list (ie: the number of file descriptors contained within). Returns: the length of listint[] peekFds()Returns the array of file descriptors that is contained in this object.int[] stealFds()Returns the array of file descriptors that is contained in this object.Fluent builder for [gio.unix_fdlist.UnixFDList]
Methods