>> > How to achieve this with an API like libssh2 is a problem >> to be solved. But >> > the current synchronous transfer is appr. 50% slower than >> OpenSSH sftp. >> >> I don't understand how the API is a limiting factor here. >> The application certainly will want the data to arrive in >> order no matter how the API is designed or how the >> internals work, and collecting data out-of-order can be >> done while still offering the existing API. Or perhaps I'm missing >> something...
Hmm, true. Basicly the changes should affect only those functions that deal with reading/writing data, for example, libssh2_sftp_read. If the user finds out the size of a file and then gives the size and corresponding buffer to libssh2_sftp_read -function, the function could transparently get all the data for the user. This approach would simulate the OpenSSH sftp's 'get' operation. The function could decide whether to use async or sync transfer based on the buffer size. br, /jUSSi -- seek $her, $from, $everywhere if exists $true{love}; Disclaimer: This message and any attachments thereto are intended solely for the addressed recipient(s) and may contain confidential information. If you are not the intended recipient, please notify the sender by reply e-mail and delete the e-mail (including any attachments thereto) without producing, distributing or retaining any copies thereof. Any review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited. Thank you. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel