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 _getGType() static nothrow
GType _gType() @property nothrow
UnixInputStream self() nothrowReturns `this`, for use in `with` statements.
UnixInputStreamGidBuilder builder() static nothrowGet builder for [gio.unix_input_stream.UnixInputStream] Returns: New builder object
bool closeFd() @property nothrowGet `closeFd` property. Returns: Whether to close the file descriptor when the stream is closed.
void closeFd(bool propval) @property nothrowSet `closeFd` property. Params: propval = Whether to close the file descriptor when the stream is closed.
int fd() @property nothrowGet `fd` property. Returns: The file descriptor that the stream reads from.
bool getCloseFd() nothrowReturns 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() nothrowReturn the UNIX file descriptor that the stream reads from. Returns: The file descriptor of stream
void setCloseFd(bool closeFd) nothrowSets 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.

Fluent builder implementation template for gio.unix_input_stream.UnixInputStream

Methods
T closeFd(bool propval) nothrowSet `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) nothrowSet `fd` property. Params: propval = The file descriptor that the stream reads from. Returns: Builder instance for fluent chaining
Methods
UnixInputStream build() nothrowCreate object from builder. Returns: New object