GioUnix.FileDescriptorBased

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

Implementations:

GioUnix.InputStream, GioUnix.OutputStream

Methods

get_fd ()

Virtual Methods

do_get_fd ()

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.

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