Method

JsonrpcOutputStreamwrite_message_async

Declaration [src]

void
jsonrpc_output_stream_write_message_async (
  JsonrpcOutputStream* self,
  GVariant* message,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

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.

Available since:3.26

Parameters

message GVariant
 

A GVariant.

 The data is owned by the caller of the function.
cancellable GCancellable
 

A GCancellable or NULL.

 The argument can be NULL.
 The data is owned by the caller of the function.
callback GAsyncReadyCallback
 

A GAsyncReadyCallback or NULL.

 The argument can be NULL.
user_data gpointer
 

Closure data for callback.

 The argument can be NULL.
 The data is owned by the caller of the function.