FPing using JDK

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: FPing using JDK

  1. #1
    Join Date
    Dec 2006

    FPing using JDK

    I want to write a program that will fping a list of machines.Can any one give me some idea as how to use JDK write a FPing programe.

  2. #2
    Join Date
    Dec 2006
    If you are using jdk 1.5, you can use the method, InetAddress.isReachable(timeInMillisecond) method. But if you are running on unix based system, you have to run java as root.
    If you are using older versions of jdk which is less than 1.5, you have to write your own multi threaded implementation of Fping.
    We have created a socket and set the timeout for a small amount of time,using setSoTimeout() method and call setTcpNoDelay(false) method. After that we tried to connect to the Socket. If an exception araises, we identified that the host is not reachable.
    I don't know, how good is this approach.But that application is working fine..

Similar Threads

  1. final release: Sun JDK 1.4.0
    By Anonymous in forum Java
    Replies: 0
    Last Post: 02-16-2002, 03:59 PM
  2. JDK 1.18 and JDK 1.3.1
    By Kaushik Mehta in forum Java
    Replies: 0
    Last Post: 09-06-2001, 02:09 PM
  3. Websphere / JDK version related question.
    By Harman Lidder in forum Java
    Replies: 2
    Last Post: 05-11-2001, 05:34 AM
  4. JDK 1.2 and J++
    By in forum Java
    Replies: 0
    Last Post: 10-24-2000, 10:30 AM
  5. Replies: 0
    Last Post: 08-19-2000, 02:31 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
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center