Example usage for Java java.net InetSocketAddress fields, constructors, methods, implement or subclass
The text is from its open source code.
InetSocketAddress(InetAddress addr, int port) Creates a socket address from an IP address and a port number. | |
InetSocketAddress(String hostname, int port) Creates a socket address from a hostname and a port number. | |
InetSocketAddress(int port, String hostname) | |
InetSocketAddress(int port) Creates a socket address where the IP address is the wildcard address and the port number a specified value. |
InetSocketAddress | createUnresolved(String host, int port) Creates an unresolved socket address from a hostname and a port number. |
boolean | equals(Object obj) Compares this object against the specified object. |
InetAddress | getAddress() Gets the InetAddress . |
String | getHostName() Gets the hostname . |
String | getHostString() Returns the hostname, or the String form of the address if it doesn't have a hostname (it was created using a literal). |
int | getPort() Gets the port number. |
int | hashCode() Returns a hashcode for this socket address. |
boolean | isUnresolved() Checks whether the address has been resolved or not. |
String | toString() Constructs a string representation of this InetSocketAddress. |