GioUnix.FileDescriptorBased

g GObject.GInterface GObject.GInterface GioUnix.FileDescriptorBased GioUnix.FileDescriptorBased GObject.GInterface->GioUnix.FileDescriptorBased

Implementations:

GioUnix.InputStream, GioUnix.OutputStream

Methods

class

get_fd (fd_based)

Virtual Methods

None

Properties

None

Signals

None

Fields

None

Class Details

class GioUnix.FileDescriptorBased
Bases:

GObject.GInterface

Structure:

GioUnix.FileDescriptorBasedIface

GFileDescriptorBased is an interface for file descriptor based IO.

It is implemented by streams (implementations of [class`Gio`.InputStream] or [class`Gio`.OutputStream]) that are based on file descriptors.

Note that <gio/gfiledescriptorbased.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.

New in version 2.24.

classmethod get_fd(fd_based)
Parameters:

fd_based (Gio.FileDescriptorBased) – a GioUnix.FileDescriptorBased.

Returns:

The file descriptor

Return type:

int

Gets the underlying file descriptor.

New in version 2.24.