www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: [libssh2] An SCP API problem

Re: [libssh2] An SCP API problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 2 Feb 2007 14:47:14 +0100 (CET)

On Thu, 1 Feb 2007, Daniel Stenberg wrote:

> My version doesn't do the counting of the bytes received but just calls
> libssh2_channel_read() assuming it would finally return 0 when the file
> transfer is completed.

BTW, the need for counting the file size "on your own" certainly opens up for
the question:

What if I scp a file which doesn't have a known size? Like a named pipe, or a
file that is being written to while we are transferring?

It feels like a bug to me. But I'll leave that for later anyway...

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
libssh2-devel mailing list
Received on 2007-02-02

the libssh2 team