Thank you for reminding me! I read the new code of libssh2-1.2.8-20110118, I
am excited, But i have one question about the following note:
*- On following call, the 'buffer' is expected to have advanced TOTAL **
I can not send another buffer before the current buffer is totally sent off,
even i know it has been copied by sftp_write().
Can i reuse the buffer which has been copied by sftp_write()? if not why
have such a restriction. thank you!
2011/1/18 Daniel Stenberg <daniel_at_haxx.se>
> On Tue, 18 Jan 2011, zl liu wrote:
> in the function sftp_write() have the code:
>> /* we limit this to just send a single SSH packet at a time */
>> if(count > 32500)
>> count = 32500;
>> So i think the buffer is big enough.
> That's what libssh2 used to do. If you look in the current code you'll see
> that the sftp_write() has been rewritten and works quite differently now.
> / daniel.haxx.se
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-01-20