Use inetSocketAddress(int, String) to create an inet socket address and domainSocketAddress(String)
to create a domain socket address
| Modifier and Type | Method and Description |
|---|---|
| public static SocketAddress | Returns: the created socket addressthe address path path)Create a domain socket address from a |
| public String | Returns: the host addressReturns the host name when available or the IP address in string representation. |
| public String | Returns: the host addressReturns the host IP address when available or |
| public String | Returns: the host nameReturns the host name when available or |
| public static SocketAddress | Returns: the created socket addressthe port port, String the host host)Create an inet socket address, |
| public static SocketAddress | Returns: the created socket addressthe address address)Create a inet socket address from a Java |
| public boolean | |
| public boolean | |
| public String | Returns: the domain socket path ornull for inet socket address, empty path represents unnamed domain socket addresses.
|
| public int | |
| public static SocketAddress | Returns: the created socket addressthe shared random port id id, String the host host)Create an inet socket address that binds to a shared random port identified by |
| domainSocketAddress | back to summary |
|---|---|
| public static SocketAddress domainSocketAddress(String path) Create a domain socket address from a
| |
| host | back to summary |
|---|---|
| public String host() Returns the host name when available or the IP address in string representation.
| |
| hostAddress | back to summary |
|---|---|
| public String hostAddress() Returns the host IP address when available or
| |
| hostName | back to summary |
|---|---|
| public String hostName() Returns the host name when available or
| |
| inetSocketAddress | back to summary |
|---|---|
| public static SocketAddress inetSocketAddress(int port, String host) Create an inet socket address,
| |
| inetSocketAddress | back to summary |
|---|---|
| public static SocketAddress inetSocketAddress(InetSocketAddress address) Create a inet socket address from a Java
| |
| isDomainSocket | back to summary |
|---|---|
public boolean isDomainSocket()
| |
| isInetSocket | back to summary |
|---|---|
public boolean isInetSocket()
| |
| path | back to summary |
|---|---|
public String path()
| |
| port | back to summary |
|---|---|
public int port()
| |
| sharedRandomPort | back to summary |
|---|---|
| public static SocketAddress sharedRandomPort(int id, String host) Create an inet socket address that binds to a shared random port identified by
| |