- <init>
Creates a socket endpoint with the given port number port and address. The range
for valid port numb
- getPort
Returns this socket address' port.
- getAddress
Returns this socket address' address.
- getHostName
Returns the hostname, doing a reverse DNS lookup on the InetAddress if no
hostname string was provid
- getHostString
Returns the hostname if known, or the result of InetAddress.getHostAddress.
Unlike #getHostName, thi
- createUnresolved
Creates an InetSocketAddress without trying to resolve the hostname into an
InetAddress. The address
- toString
Returns a string containing the address (or the hostname for an unresolved
InetSocketAddress) and po
- isUnresolved
Returns whether this socket address is unresolved or not.
- equals
Compares two socket endpoints and returns true if they are equal. Two socket
endpoints are equal if
- hashCode
Returns a hashcode for this socket address.