Jump to content

Java programming questions related to network...

Featured Replies

I am just trying to see if I am able to make a download manager along with practicing my programming skill,,

 

ok below are the questions:

 

1) can you control how much bandwidth your program is uploading/downloading a file? what is the related class for this in API?

 

2) can the program know how big is the file during a download? what is the related class in API?

 

3) can the program monitor how much bandwidth is a downloading/uploading transaction? what is the related class in API?

 

4) how is bandwidth related to java's definition of data stream???

 

thanks alot for helping me...

 

cheers

Not sure if there are any specifics API's but there could be.

 

I think you can simply do it by keeping track of how much data you are sending and watching the timestamps etc, sleeping for a certain amount of time to keep the datarate below a certain threshold (as you send X bytes and read X bytes with read() etc).

  • Author

thanks Aeternus...

 

however, I really want to ask this question at: forum.java.sun.com

 

but, that site seems to have a little problem (for me) to log in...

 

would you or any one of you click on the login hyperlink on the left of that forum and check is there the same problem that occurs on mine as well? the problem is that it says "request time out"

 

plz help

 

thanks alot

  • Author

please, can any one do me this favor from my last post??

 

thx

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.