public interface SocketAddress
inetSocketAddress(int, String) to create an inet socket address and domainSocketAddress(String)
 to create a domain socket address| Modifier and Type | Method and Description | 
|---|---|
static SocketAddress | 
domainSocketAddress(String path)
Create a domain socket address. 
 | 
String | 
host()  | 
static SocketAddress | 
inetSocketAddress(int port,
                 String host)
Create a inet socket address,  
host must be non null and port must be between 0
 and 65536. | 
String | 
path()  | 
int | 
port()  | 
static SocketAddress inetSocketAddress(int port, String host)
host must be non null and port must be between 0
 and 65536.port - the address porthost - the address hoststatic SocketAddress domainSocketAddress(String path)
path - the address pathString host()
null for a domain socketint port()
-1 for a domain socketString path()
null for a inet socketCopyright © 2020 Eclipse. All rights reserved.