Gio.UnixOutputStream¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.OutputStream (29), GObject.Object (37), Gio.FileDescriptorBased (1), Gio.PollableOutputStream (5)
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.UnixOutputStream(**kwargs)¶
- Bases:
Gio.OutputStream
,Gio.FileDescriptorBased
,Gio.PollableOutputStream
- Abstract:
No
- Structure:
GUnixOutputStream
implements [class`Gio`.OutputStream] for writing to a UNIX file descriptor, including asynchronous operations. (If the file descriptor refers to a socket or pipe, this will usepoll()
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 thegio-unix-2.0.pc
pkg-config file file or theGioUnix-2.0
GIR namespace when using it.- classmethod new(fd, close_fd)[source]¶
- Parameters:
- Returns:
a new
Gio.OutputStream
- Return type:
Creates a new
Gio.UnixOutputStream
for the given fd.If close_fd, is
True
, the file descriptor will be closed when the output stream is destroyed.
- get_close_fd()[source]¶
-
Returns whether the file descriptor of self will be closed when the stream is closed.
New in version 2.20.
Property Details¶
- Gio.UnixOutputStream.props.close_fd¶
-
Whether to close the file descriptor when the stream is closed.
New in version 2.20.
- Gio.UnixOutputStream.props.fd¶
- Name:
fd
- Type:
- Default Value:
-1
- Flags:
The file descriptor that the stream writes to.
New in version 2.20.