Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to measure responsetime of network using JAVA?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a client and a server.I want to measure responsetime of network between them.When i send request to server it should immediate response my request,it should be like ping request so that there will be no processing time at server.
How can i do this in JAVA? Kindly help me to resolve this issue.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Amit Chandigarihan " please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

And this is not an advanced topic, moving to an appropriate place.
 
Bartender
Posts: 612
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want it to be like ping - why not just ping?
 
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you need raw sockets, google for jpcap, there are two libraries, the one called Jpcap(notice case) will allow you to send.

Advantage of this is that if your target drops ping you can try using TCP or UDP packets which sometimes works. Most ping implementation don't do this.
 
Amit Chandigarihan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Steve Fahlbusch wrote:If you want it to be like ping - why not just ping?



But how can we implement ping request in java?
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic