Virtual Method
ValentChanneldownload
unstable since: 1.0
Declaration [src]
void
download (
ValentChannel* channel,
JsonNode* packet,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Open an auxiliary connection, usually to download data.
Implementations should use information from the payloadTransferInfo field
to open a connection and wait for it to be accepted. In most cases the remote
device will write data to the stream and then close it when finished.
For example, a TCP-based implementation could connect to a port in the
payloadTransferInfo dictionary on the same host as the channel. When the
connection is accepted the caller can perform operations on it as required.
Call valent_channel_download_finish() to get the result.
Available since: 1.0
Parameters
packet-
Type:
JsonNodeA KDE Connect packet.
The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallback. user_data-
Type:
gpointerUser supplied data.
The argument can be NULL.The data is owned by the caller of the method.