receive_all


Description:

public ssize_t receive_all (Cancellable? cancellable, StreamSinkFunc func) throws Error

Receive the entire data stream, sending the data to the requested data sink.

This is simply a convenient alternative to virStreamRecv, for apps that do blocking-I/o.

Parameters:

this

the stream

cancellable

cancellation notifier

func

the callback for writing data to application

user_data

data to be passed to callback

Returns:

the number of bytes consumed or -1 upon error




2022 vala-language.org