FileDescriptorBased#

Added in version 2.24.

class FileDescriptorBased(*args, **kwargs)#

Implementations: UnixInputStream, UnixOutputStream

GFileDescriptorBased is an interface for file descriptor based IO.

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

Methods#

class FileDescriptorBased
get_fd() int#

Gets the underlying file descriptor.

Added in version 2.24.

Virtual Methods#

class FileDescriptorBased
do_get_fd() int#

Gets the underlying file descriptor.

Added in version 2.24.