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 #GUnixFDMessage and sent over a #GSocket in the %G_SOCKET_FAMILY_UNIX family by using g_socket_send_message() and received using g_socket_receive_message().

Note that <gio/gunixfdlist.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file when using it.

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).