Class Constants

java.lang.Object
net.jini.discovery.Constants

public class Constants extends Object
A holder class for constants that pertain to the unicast and multicast discovery protocols.
Author:
Sun Microsystems, Inc.
  • Method Details

    • getRequestAddress

      public static InetAddress getRequestAddress() throws UnknownHostException
      Return the address of the multicast group over which the multicast request protocol takes place.
      Returns:
      the address of the multicast group over which the multicast request protocol takes place
      Throws:
      UnknownHostException
    • getAnnouncementAddress

      public static InetAddress getAnnouncementAddress() throws UnknownHostException
      Return the address of the multicast group over which the multicast announcement protocol takes place.
      Returns:
      the address of the multicast group over which the multicast announcement protocol takes place.
      Throws:
      UnknownHostException
    • getDiscoveryPort

      public static int getDiscoveryPort()
    • getTtl

      public static int getTtl()
      Default time to live value to use for sending multicast packets
    • isMulticastEnabled

      public static boolean isMulticastEnabled()
    • useSocketKeepAlive

      public static boolean useSocketKeepAlive()
    • useSocketTcpNoDelay

      public static boolean useSocketTcpNoDelay()