Jsonrpc.OutputStream¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.DataOutputStream (11), Gio.FilterOutputStream (3), Gio.OutputStream (29), GObject.Object (37), Gio.Seekable (5)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
If |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Jsonrpc.OutputStream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(base_stream)¶
- Parameters:
base_stream (
Gio.OutputStream) –- Return type:
- write_message(message, cancellable)¶
- Parameters:
message (
GLib.Variant) – aGLib.Variantcancellable (
Gio.CancellableorNone) – aGio.CancellableorNone
- Raises:
- Return type:
Synchronously sends a message to the peer.
This operation will complete once the message has been buffered. There is no guarantee the peer received it.
New in version 3.26.
- write_message_async(message, cancellable, callback, *user_data)¶
- Parameters:
message (
GLib.Variant) – aGLib.Variantcancellable (
Gio.CancellableorNone) – aGio.CancellableorNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackorNone
Asynchronously sends a message to the peer.
This asynchronous operation will complete once the message has been buffered, and there is no guarantee the peer received it.
New in version 3.26.
- write_message_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
Property Details¶
- Jsonrpc.OutputStream.props.use_gvariant¶
- Name:
use-gvariant- Type:
- Default Value:
- Flags:
If
GLib.Variantencoding should be used