send_all


Description:

public ssize_t send_all (Cancellable? cancellable, StreamSourceFunc func) throws Error

Send the entire data stream, sending the data to the requested data source.

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