Package org.ros.address
Class BindAddress
java.lang.Object
org.ros.address.BindAddress
A wrapper for
InetSocketAddress that emphasizes the difference
between an address that should be used for binding a server port and one that
should be advertised to external entities.- Author:
- kwc@willowgarage.com (Ken Conley)
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static BindAddressstatic BindAddressnewPrivate(int port) static BindAddressstatic BindAddressnewPublic(int port) toString()
-
Method Details
-
newPublic
- Parameters:
port- the port to bind to- Returns:
- a
BindAddressinstance with specified port that will bind to all network interfaces on the host
-
newPublic
-
newPrivate
- Parameters:
port- the port to bind to- Returns:
- a
BindAddressinstance with specified port that will bind to the loopback interface on the host
-
newPrivate
-
toString
-
toInetSocketAddress
-
hashCode
public int hashCode() -
equals
-