Results 1 to 5 of 5
  1. #1
    sacr83 is offline Member
    Join Date
    Feb 2008
    Posts
    5
    Rep Power
    0

    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?

  2. #2
    vglass is offline Member
    Join Date
    Jul 2007
    Posts
    14
    Rep Power
    0

    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.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    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.

  4. #4
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    6

    Default

    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. Ping pong game
    By adam405 in forum New To Java
    Replies: 8
    Last Post: 10-20-2010, 03:52 PM
  2. Animation Delay - Thread problem
    By wererabit in forum Advanced Java
    Replies: 3
    Last Post: 04-10-2009, 10:35 PM
  3. Replies: 1
    Last Post: 02-15-2008, 04:07 PM
  4. Replies: 0
    Last Post: 02-05-2008, 10:59 AM
  5. ping cmd
    By kishi in forum Advanced Java
    Replies: 2
    Last Post: 11-14-2007, 03:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •