gio.unix_input_stream

Module for [UnixInputStream] class

Types 3

[gio.unix_input_stream.UnixInputStream] implements [gio.input_stream.InputStream] for reading from a UNIX file descriptor, including asynchronous operations. (If the file descriptor refers to a socket or pipe, this will use poll() to do asynchronous I/O. If it refers to a regular file, it will fall back to doing asynchronous I/O in another thread.)

Note that <gio/gunixinputstream.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
GType _gType() @property
UnixInputStream self()Returns `this`, for use in `with` statements.
UnixInputStreamGidBuilder builder()Get builder for [gio.unixinputstream.UnixInputStream] Returns: New builder object
bool closeFd() @propertyGet `closeFd` property. Returns: Whether to close the file descriptor when the stream is closed.
void closeFd(bool propval) @propertySet `closeFd` property. Params: propval = Whether to close the file descriptor when the stream is closed.
int fd() @propertyGet `fd` property. Returns: The file descriptor that the stream reads from.
bool getCloseFd()Returns whether the file descriptor of stream will be closed when the stream is closed. Returns: true if the file descriptor is closed when done
int getFd()Return the UNIX file descriptor that the stream reads from. Returns: The file descriptor of stream
void setCloseFd(bool closeFd)Sets whether the file descriptor of stream shall be closed when the stream is closed.
Constructors
this(void * ptr, Flag!"Take" take)
this(int fd, bool closeFd)Creates a new #GUnixInputStream for the given fd.
Methods
T closeFd(bool propval)Set `closeFd` property. Params: propval = Whether to close the file descriptor when the stream is closed. Returns: Builder instance for fluent chaining
T fd(int propval)Set `fd` property. Params: propval = The file descriptor that the stream reads from. Returns: Builder instance for fluent chaining

Fluent builder for [gio.unix_input_stream.UnixInputStream]