Method
JsonrpcOutputStreamwrite_message_async
since: 3.26
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
This method completes asynchronously. Use jsonrpc_output_stream_write_message_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
- message
- 
            Type: GVariantA GVariant.The data is owned by the caller of the method. 
- cancellable
- 
            Type: GCancellableA GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. 
- callback
- 
            Type: GAsyncReadyCallbackA GAsyncReadyCallbackorNULL.The argument can be NULL.
- user_data
- 
            Type: gpointerClosure data for callback.The argument can be NULL.The data is owned by the caller of the method.