login about faq

Hi,

How do I get information about the transfer speed when downloading or uploading using sftp?

Br,

Hendrik

asked Feb 10 '13 at 16:37

H_Johns's gravatar image

H_Johns
16334


You can use the DownloadRate and UploadRate events. Here's a partial VB6 example (doesn't actually download or upload, just shows the event parameters):

Option Explicit

Private WithEvents mo_Ftp As CHILKATSSHLib.ChilkatSFtp

Private Sub mo_Ftp_DownloadRate(ByVal byteCount As Long, ByVal bytesPerSec As Long)
   Debug.Print "Download BPS: " & bytesPerSec
End Sub

Private Sub mo_Ftp_UploadRate(ByVal byteCount As Long, ByVal bytesPerSec As Long)
   Debug.Print "Upload BPS: " & bytesPerSec
End Sub
link

answered Feb 10 '13 at 17:55

jpbro's gravatar image

jpbro ♦
1.1k2618

For C or C++ those (downloadrate/uploadrate) are in the class CkSFtpProgress - see http://www.chilkatsoft.com/refdoc/vcCkSFtpDoc.html#prop008

link

answered Feb 10 '13 at 18:45

Gert's gravatar image

Gert ♦
629141824

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×200

Asked: Feb 10 '13 at 16:37

Seen: 1,492 times

Last updated: Feb 10 '13 at 18:45

powered by OSQA