Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 04:47 PM
Member
 
Join Date: Feb 2008
Posts: 5
Rep Power: 0
sacr83 is on a distinguished road
Default How to mesure ping delay in JAVA..?
I'm new for networking programing in JAVA and i wanna know that how to write a java program for mesure to ping delay for particular site od IP address?As a Example, if I ping to Google then how to program to mesure ping delay for that site?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 05-30-2008, 11:40 PM
Member
 
Join Date: Jul 2007
Posts: 14
Rep Power: 0
vglass is on a distinguished road
Default
Unfortunately Java does not support the ICMP protocol which is needed for ping. There are however some native implementations out there that work with Java. Do a google search for "java ping" to find some.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-31-2008, 08:22 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,446
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
In Java we can check that server is reachable or not. That's not what exactly looking by sacr83. But if we can implement it some time mechanism, we can measure the delay.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-14-2008, 02:58 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 191
Rep Power: 2
danielstoner is on a distinguished road
Default
How To: ICMP Ping in Java (JDK 1.5 and above)
__________________
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-15-2008, 07:37 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,446
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Thanks buddy, ICMP ping in Java. I'm really looking on it.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation Delay - Thread problem wererabit Advanced Java 3 04-10-2009 11:35 PM
Ping pong game adam405 New To Java 7 03-24-2008 05:29 AM
How to write a JAVA program to mesure ping delay..? sacr83 Networking 1 02-15-2008 05:07 PM
XML parsing with 10sec delay using timer class srikanthn XML 0 02-05-2008 11:59 AM
ping cmd kishi Advanced Java 2 11-14-2007 04:27 PM


All times are GMT +2. The time now is 08:16 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org