Home arrow static arrow Java Programming [Archive] - Network Programming -
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Network Programming -
This topic has 2 replies on 1 page.

Registered: 6/17/04
Network Programming -   
Jun 17, 2004 10:13 PM

Hi Everyone,

I want to write a Jav Applet which allows users to test their bandwidth. I know there are alot out there
but I want to write one myself.

I need the Applet to to have button where once pressed downloads a 1Mb zip file from a webserver
and uploads the same 1Mb file to the webserver then workout how long it took to transfer both files
and spit this figure back out to the browser for the user to see.

My question would I use Java Sockets or uRL.openConnection() to do this? I just dont know how to go about this. Im assuming the Applet would connect to a Servlet which will send the file
to the Applet? Can this be done by invoking FTP somehow. I dont need to physically save the files anywhere just tme how long they take to download and upload. Any ideas would be greatly appreciated.

Thanks all,


Registered: 99-04-02
Re: Network Programming -   
Jun 18, 2004 9:05 AM (reply 1 of 2)

You could use a Socket to talk HTTP or FTP. I would use Sockets for that type of thing, probably. If you want FTP, you can search around, there are FTP client implementations in Java.

Registered: 12/9/97
Free FTP Client  
Jun 18, 2004 12:58 PM (reply 2 of 2)

Here's one that we use which is fairly reliable

This topic has 2 replies on 1 page.