*
The moose likes Java in General and the fly likes Detecting Network Strength Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Detecting Network Strength" Watch "Detecting Network Strength" New topic
Author

Detecting Network Strength

Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
Dear Readers,
I have developed a Chat program. I would now like to add the feature of detecting the strength of the network. I have seen it in Limewire which has been developed using Java.
My idea was to send data as follows:

Client 1 >> Server >> Client 2 >> Server >> Client 1


I was planning to keep track of the time it took for the data to reach back to the original client. Is this a good idea? If it is, then on what scale do we grade the strength of the network?


With Best Regards,
Shyam Prasad Murarka
Tim LeMaster
Ranch Hand

Joined: Aug 31, 2006
Posts: 226
Well considering Limewire is a P2P type application I would guess network strength is based upon the number of peers who you have contact with.

Whats the strength in a chat program? I'm not sure which is probably why you don't see them on most chat programs.

Client 1 >> Server >> Client 2 >> Server >> Client 1

How often are you going to do this and to which clients? The ones I'm chatting with? I guess then I could get an idea of whats the lag between me and whom I'm chatting with. But I would expect that to be measured in milliseconds so I can't imagine I'd care in a chat program - now a FPS is a different matter completely.

I don't think this has anything to do with Java. More of trying to flesh out some requirement you thought up.
Shyam Prasad Murarka
Ranch Hand

Joined: May 02, 2005
Posts: 209
Dear Readers,
Thanks so much. Sounds like I was headed the wrong way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detecting Network Strength
 
Similar Threads
Detecting browser
Detecting Servlet timeout using ajax/post.
Detecting JavaScript is Enabled
detecting ip or mac address
Detecting client disconnection events