GioUnix.InputStream¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.InputStream (19), GObject.Object (37), Gio.PollableInputStream (4), GioUnix.FileDescriptorBased (1)
- Structs:
class |
|
class |
|
class |
|
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 GioUnix.InputStream(**kwargs)¶
- Bases:
Gio.InputStream,Gio.PollableInputStream,GioUnix.FileDescriptorBased- Abstract:
No
- Structure:
GUnixInputStreamimplements [class`Gio`.InputStream] for reading from 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/gunixinputstream.h>belongs to the UNIX-specific GIO interfaces, thus you have to use thegio-unix-2.0.pcpkg-config file or theGioUnix-2.0GIR namespace when using it.- classmethod get_close_fd(stream)¶
- Parameters:
stream (
Gio.UnixInputStream) – aGioUnix.InputStream- Returns:
Trueif the file descriptor is closed when done- Return type:
Returns whether the file descriptor of stream will be closed when the stream is closed.
New in version 2.20.
- classmethod get_fd(stream)¶
- Parameters:
stream (
Gio.UnixInputStream) – aGioUnix.InputStream- Returns:
The file descriptor of stream
- Return type:
Return the UNIX file descriptor that the stream reads from.
New in version 2.20.
- classmethod new(fd, close_fd)¶
- Parameters:
- Returns:
a new
GioUnix.InputStream- Return type:
Creates a new
GioUnix.InputStreamfor the given fd.If close_fd is
True, the file descriptor will be closed when the stream is closed.
- classmethod set_close_fd(stream, close_fd)¶
- Parameters:
stream (
Gio.UnixInputStream) – aGioUnix.InputStreamclose_fd (
bool) –Trueto close the file descriptor when done
Sets whether the file descriptor of stream shall be closed when the stream is closed.
New in version 2.20.
Property Details¶
- GioUnix.InputStream.props.close_fd¶
-
Whether to close the file descriptor when the stream is closed.
New in version 2.20.
- GioUnix.InputStream.props.fd¶
- Name:
fd- Type:
- Default Value:
-1- Flags:
The file descriptor that the stream reads from.
New in version 2.20.