Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4639861

API to test reachability of a host

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.1.4, 1.1.6, 1.2.0, 1.2.2, 5.0
    • core-libs
    • tiger
    • generic, x86, sparc
    • generic, solaris_2.5.1, windows_nt


      This RFE is submitted to track the requirement to test the reachability
      of a host (or more likely an InetAddress). This RFE stems from the
      feedback to 4093850 "ICMP protocol support a.k.a. PING applets" where
      it clear that many developers have a basic requirement to test if a
      host was reachable (something akin to the ping utility).

      In its simplest form it we could test if a host is reachable
      within a specified timeout. Another variant could be to test if
      a host is reachable from a specified java.net.NetworkInterface.

      Implementation-wise there needs to be flexibility to choose how
      reachability is determined. If we can create an ICMP socket then
      we can send/receive an echo request/reply ala classic ping.
      Alternatively if we can't create an ICMP socket then a UDP or TCP
      approach might be used (for example we could send a UDP packet to
      the echo port and handle timeout/port unreachable).

            jccollet Jean-Christophe Collet (Inactive)
            jccollet Jean-Christophe Collet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: