:right-sidebar: True FileDescriptorBased =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.24 .. class:: FileDescriptorBased(*args, **kwargs) :no-contents-entry: Implementations: :class:`~gi.repository.Gio.UnixInputStream`, :class:`~gi.repository.Gio.UnixOutputStream` ``GFileDescriptorBased`` is an interface for file descriptor based IO. It is implemented by streams (implementations of :obj:`~gi.repository.Gio.InputStream` or :obj:`~gi.repository.Gio.OutputStream`\) that are based on file descriptors. Note that ```` 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. Methods ------- .. rst-class:: interim-class .. class:: FileDescriptorBased :no-index: .. method:: get_fd() -> int Gets the underlying file descriptor. .. versionadded:: 2.24 Virtual Methods --------------- .. rst-class:: interim-class .. class:: FileDescriptorBased :no-index: .. method:: do_get_fd() -> int Gets the underlying file descriptor. .. versionadded:: 2.24