Gio.FileDescriptorBased

g GObject.GInterface GObject.GInterface Gio.FileDescriptorBased Gio.FileDescriptorBased GObject.GInterface->Gio.FileDescriptorBased

Implementations:

Gio.UnixInputStream, Gio.UnixOutputStream

Methods

get_fd ()

Virtual Methods

do_get_fd ()

Properties

None

Signals

None

Fields

None

Class Details

class Gio.FileDescriptorBased
Bases:

GObject.GInterface

Structure:

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

get_fd()[source]
Returns:

The file descriptor

Return type:

int

Gets the underlying file descriptor.

New in version 2.24.

do_get_fd() virtual
Returns:

The file descriptor

Return type:

int

Gets the underlying file descriptor.

New in version 2.24.