curl-library
Re: libssh2 patch 10/15
Date: Fri, 24 Nov 2006 06:35:13 -0500
On Nov 24, 2006, at 2:38 AM, Daniel Stenberg wrote:
> On Thu, 23 Nov 2006, James Housley wrote:
>
>>> Regarding SFTP. Can it be so that the calls we do to libssh2
>>> doesn't really trigger any download. We just do libssh2_sftp_open
>>> () and then libssh2_sftp_stat() and then starts waiting for a
>>> transfer. Is that transfer then really started at that point?
>>
>> It is just like fopen() to a file on your disk, the file is only
>> open. Nothing comes at you, you have to call fread() to get data.
>> The exact same is true with libssh2
>
> Yeah, I was afraid that is the situation. I don't really see the
> "right" solution here, given the current libssh2 API. Do you?
>
That is why I had to model it after file:// for the download part.
Because it works just like file://
Jim
-- /"\ ASCII Ribbon Campaign . \ / - NO HTML/RTF in e-mail . X - NO Word docs in e-mail . / \ ----------------------------------------------------------------- jeh@FreeBSD.org http://www.FreeBSD.org The Power to Serve jim@TheHousleys.Net http://www.TheHousleys.net --------------------------------------------------------------------- In theory there is no difference between theory and practice. In practice there is no similarity. -- From the "I wish I'd said that" archives.Received on 2006-11-24