Method

ValentChannelwrite_packet

unstable since: 1.0

Declaration [src]

void
valent_channel_write_packet (
  ValentChannel* channel,
  JsonNode* packet,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Send a packet over the channel.

Internally ValentChannel uses an outgoing packet buffer, so multiple requests can be started safely from any thread.

Call valent_channel_write_packet_finish() to get the result.

Available since: 1.0

Parameters

packet

Type: JsonNode

A KDE Connect packet.

The data is owned by the caller of the method.
cancellable

Type: GCancellable

A GCancellable

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

Type: GAsyncReadyCallback

A GAsyncReadyCallback

The argument can be NULL.
user_data

Type: gpointer

User supplied data.

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