gio.unix.OutputStream — Streaming output operations for UNIX file descriptors.
class gio.unix.OutputStream(gio.OutputStream): |
|
gio.unix.OutputStream
implements gio.OutputStream
for writing to a UNIX file descriptor, including asynchronous operations.
The file descriptor must be selectable, so it doesn't work with opened files.
Note that gio.unix.OutputStream
belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file
when using it.
gio.unix.OutputStream(fd
, close_fd
)
| a UNIX file descriptor. |
| True
to close the file descriptor when done
|
Returns : | a new
gio.unix.OutputStream
|
Creates a new gio.unix.OutputStream
from the given fd.
If close_fd is True
, the file descriptor will be closed when the stream is closed.
def get_close_fd()
Returns : | True if the file descriptor is closed when done.
|
The get_close_fd
() method returns whether the file
descriptor of stream will be closed when the stream is closed.