gio.unix_input_stream
Module for [UnixInputStream] class
Types 3
classUnixInputStream : gio.input_stream.InputStream, gio.file_descriptor_based.FileDescriptorBased, gio.pollable_input_stream.PollableInputStream
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
UnixInputStreamGidBuilder builder() static nothrowGet builder for [gio.unix_input_stream.UnixInputStream] Returns: New builder objectbool 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 doneint getFd() nothrowReturn the UNIX file descriptor that the stream reads from. Returns: The file descriptor of streamvoid setCloseFd(bool closeFd) nothrowSets whether the file descriptor of stream shall be closed when the stream is closed.classUnixInputStreamGidBuilderImpl(T) : gio.input_stream.InputStreamGidBuilderImpl!T, gio.file_descriptor_based.FileDescriptorBasedGidBuilderImpl!T, gio.pollable_input_stream.PollableInputStreamGidBuilderImpl!T
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 chainingT fd(int propval) nothrowSet `fd` property. Params: propval = The file descriptor that the stream reads from. Returns: Builder instance for fluent chainingFluent builder for gio.unix_input_stream.UnixInputStream
Methods