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
UnixInputStream self()Returns `this`, for use in `with` statements.UnixInputStreamGidBuilder builder()Get builder for [gio.unixinputstream.UnixInputStream] Returns: New builder objectbool 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.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 doneint getFd()Return the UNIX file descriptor that the stream reads from. Returns: The file descriptor of streamvoid setCloseFd(bool closeFd)Sets 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
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 chainingT fd(int propval)Set `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