Hi,
I dont sure that I am posting the thread to right place.
I want to test user bandwith over an application that installed to user's computer.

There are online test tools , but I must I need java source code for implementing to our application.

Can anyone help about this?

Thanks;

Recommended Answers

All 2 Replies

You could use a server application at one end, client at the other. Transfer a load of (random?) data from one to the other and see how long it takes. Java has full support for making connections across a network, start with a look at Sockets and ServerSockets in the Java API. You'll also find loads of stuff on the web about how to use Java Sockets for network communications.

I think you should use Socket and InputStream objects. then, the whole point is to count bytes from InputStream, untill -1 appear.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.