Package net.jini.discovery
Class Constants
java.lang.Object
net.jini.discovery.Constants
A holder class for constants that pertain to the unicast and multicast discovery protocols.
- Author:
- Sun Microsystems, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InetAddressReturn the address of the multicast group over which the multicast announcement protocol takes place.static intstatic InetAddressReturn the address of the multicast group over which the multicast request protocol takes place.static intgetTtl()Default time to live value to use for sending multicast packetsstatic booleanstatic booleanstatic boolean
-
Method Details
-
getRequestAddress
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
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()
-