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

Gio.FileDescriptorBased is implemented by streams (implementations of Gio.InputStream or 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 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.