Module: Gio::FileDescriptorBased

Defined in:
(unknown)

Overview

GFileDescriptorBased is an interface for file descriptor based IO.

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

Instance Method Summary collapse

Instance Method Details

#fdInteger

Gets the underlying file descriptor.

Returns:

  • (Integer)

    The file descriptor

#get_fd(fd_based) ⇒ Integer

Returns The file descriptor.

Parameters:

Returns:

  • (Integer)

    The file descriptor