Virtual Method
ValentChannelupload_async
unstable since: 1.0
Declaration [src]
void
upload_async (
ValentChannel* channel,
JsonNode* packet,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Accept an auxiliary connection, usually to upload data.
This is a non-blocking variant of valent_channel_upload()
. Call
valent_channel_upload_finish()
to get the result.
The default implementation of this method invokes
Valent.ChannelClass.upload
in a thread.
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
. user_data
-
Type:
gpointer
User supplied data.
The argument can be NULL
.The data is owned by the caller of the method.