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.Variant
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- 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.Variant
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
orNone
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.Variant
encoding should be used