Jsonrpc.OutputStream

g GObject.GInterface GObject.GInterface Gio.Seekable Gio.Seekable GObject.GInterface->Gio.Seekable GObject.Object GObject.Object Gio.OutputStream Gio.OutputStream GObject.Object->Gio.OutputStream Gio.DataOutputStream Gio.DataOutputStream Jsonrpc.OutputStream Jsonrpc.OutputStream Gio.DataOutputStream->Jsonrpc.OutputStream Gio.FilterOutputStream Gio.FilterOutputStream Gio.FilterOutputStream->Gio.DataOutputStream Gio.OutputStream->Gio.FilterOutputStream Gio.Seekable->Gio.DataOutputStream

Subclasses:

None

Methods

Inherited:

Gio.DataOutputStream (11), Gio.FilterOutputStream (3), Gio.OutputStream (29), GObject.Object (37), Gio.Seekable (5)

Structs:

GObject.ObjectClass (5)

class

new (base_stream)

get_use_gvariant ()

set_use_gvariant (use_gvariant)

write_message (message, cancellable)

write_message_async (message, cancellable, callback, *user_data)

write_message_finish (result)

Virtual Methods

Inherited:

Gio.OutputStream (15), GObject.Object (7), Gio.Seekable (5)

Properties

Inherited:

Gio.DataOutputStream (1), Gio.FilterOutputStream (2)

Name

Type

Flags

Short Description

use-gvariant

bool

r/w/en

If GLib.Variant encoding should be used

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gio.DataOutputStream

r

Class Details

class Jsonrpc.OutputStream(**kwargs)
Bases:

Gio.DataOutputStream

Abstract:

No

Structure:

Jsonrpc.OutputStreamClass

classmethod new(base_stream)
Parameters:

base_stream (Gio.OutputStream) –

Return type:

Jsonrpc.OutputStream

get_use_gvariant()
Return type:

bool

set_use_gvariant(use_gvariant)
Parameters:

use_gvariant (bool) –

write_message(message, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

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:

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:

GLib.Error

Return type:

bool

Property Details

Jsonrpc.OutputStream.props.use_gvariant
Name:

use-gvariant

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

If GLib.Variant encoding should be used