@brief Wait for an asynchronous read to complete and save the data.
@param file The opened sftp file handle to be read from.
@param data Pointer to buffer to recieve read data.
@param len Size of the buffer in bytes. It should be bigger or
equal to the length parameter of the
sftp_async_read_begin() call.
@param id The identifier returned by the sftp_async_read_begin()
function.
@return Number of bytes read, 0 on EOF, SSH_ERROR if an error
occured, SSH_AGAIN if the file is opened in nonblocking
mode and the request hasn't been executed yet.
@warning A call to this function with an invalid identifier
will never return.
@brief Wait for an asynchronous read to complete and save the data.
@param file The opened sftp file handle to be read from.
@param data Pointer to buffer to recieve read data.
@param len Size of the buffer in bytes. It should be bigger or equal to the length parameter of the sftp_async_read_begin() call.
@param id The identifier returned by the sftp_async_read_begin() function.
@return Number of bytes read, 0 on EOF, SSH_ERROR if an error occured, SSH_AGAIN if the file is opened in nonblocking mode and the request hasn't been executed yet.
@warning A call to this function with an invalid identifier will never return.
@see sftp_async_read_begin()