UnixFDList

open class UnixFDList(pointer: <Error class: unknown class><<Error class: unknown class>>)

A GUnixFDList 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/class.UnixFDMessage.html and sent over a class@Gio.Socket in the G_SOCKET_FAMILY_UNIX family by using method@Gio.Socket.send_message and received using method@Gio.Socket.receive_message.

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.

Skipped during bindings generation

  • parameter length: length: Out parameter is not supported

  • parameter length: length: Out parameter is not supported

  • parameter fds: Array parameter of type gint is not supported

Constructors

Link copied to clipboard
constructor()

Creates a new #GUnixFDList containing no file descriptors.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioUnixFDListPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun append(fd: Int): <Error class: unknown class><Int>

Adds a file descriptor to @list.

Link copied to clipboard
open fun get(index: Int): <Error class: unknown class><Int>

Gets a file descriptor out of @list.

Link copied to clipboard
open fun getLength(): Int

Gets the length of @list (ie: the number of file descriptors contained within).