1. ## File Sender?

Can I make a file sender(with progress and information like: 300KB/s) like this?

Thanks a lot~~~

2. ## Re: File Sender?

You can certainly do most of that using TCPClient and TCPListener - the only bit I'm not sure about is the kb/s rate.

If you search this form or just a general google search for those terms you should find plenty examples of how to do it.

3. ## Re: File Sender?

For kb/s, I don't know really, but you can show a total progress.

Get the file size, and divide by how many you have send and multiply by 100 (or is it 10)

4. ## Re: File Sender?

Originally Posted by formlesstree4
For kb/s, I don't know really, but you can show a total progress.

Get the file size, and divide by how many you have send and multiply by 100 (or is it 10)
It would be

(Amount Sent)/(Total File size)*100

but if you know the amount sent you can work out the KB/s just

(Bytes Sent/1000)/(Elapsed Time)

5. ## Re: File Sender?

Yeah that, I had the idea down, I just forgot how the equation was..

6. ## Re: File Sender?

If you know how many bytes you have sent, and you know at what point you started sending, then it won't be rocket-science to work out how many kb per second!

7. ## Re: File Sender?

Originally Posted by keystone_paul
If you know how many bytes you have sent, and you know at what point you started sending, then it won't be rocket-science to work out how many kb per second!
Altough that would give an average kb/second for the entire transfer, and not the current speed. I dont know if thats what the OP wants though.

leon, have a look at this thread. I posted two very simple classes for file transfers in it. You might learn a thing or two from it.

8. ## Re: File Sender?

oops~Thank you Atheist~

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

Featured