gio.unix_output_stream
Module for [UnixOutputStream] class
Types 3
classUnixOutputStream : gio.output_stream.OutputStream, gio.file_descriptor_based.FileDescriptorBased, gio.pollable_output_stream.PollableOutputStream
[gio.unix_output_stream.UnixOutputStream] implements [gio.output_stream.OutputStream] for writing to 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/gunixoutputstream.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file file or the GioUnix-2.0 GIR namespace when using it.
Methods
UnixOutputStream self()Returns `this`, for use in `with` statements.UnixOutputStreamGidBuilder builder()Get builder for [gio.unixoutputstream.UnixOutputStream] 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 writes to. Returns: The file descriptor of streamvoid setCloseFd(bool closeFd)Sets whether the file descriptor of stream shall be closed when the stream is closed.classUnixOutputStreamGidBuilderImpl(T) : gio.output_stream.OutputStreamGidBuilderImpl!T, gio.file_descriptor_based.FileDescriptorBasedGidBuilderImpl!T, gio.pollable_output_stream.PollableOutputStreamGidBuilderImpl!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 writes to. Returns: Builder instance for fluent chainingFluent builder for [gio.unix_output_stream.UnixOutputStream]
Methods