On Fri, 2 Feb 2007, Chris Nystrom wrote:
>> 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?
>
> So it did fix your issue?
Yes it did thanks, and once I wrote the code that way both my SCP transfer
examples
On 2/2/07, Daniel Stenberg <[EMAIL PROTECTED]> wrote:
>
> 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?
So it
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
On Thu, 1 Feb 2007, Chris Nystrom wrote:
> while (count < filesize) {
> n = libssh2_channel_read(channel, buf, BUFSIZ);
> count += n;
> if (write(file, buf, n) != n) {
> fprintf(stderr,
> "scp_read_
On 2/1/07, Daniel Stenberg <[EMAIL PROTECTED]> wrote:
> Hey friends,
>
> I committed example/simple/scp.c a few days ago. It seems it doesn't work to
> download files with SCP the way I thought it should. Can someone please tell
> me in what way I abuse the API?
I did not look at your code, but he
Hey friends,
I committed example/simple/scp.c a few days ago. It seems it doesn't work to
download files with SCP the way I thought it should. Can someone please tell
me in what way I abuse the API?
Use it like this:
./scp [user] [password] [path]
(and it'll connect to 127.0.0.1 and copy that