mirror of
https://github.com/corda/corda.git
synced 2025-01-09 14:33:30 +00:00
20 lines
311 B
Java
20 lines
311 B
Java
|
package java.net;
|
||
|
|
||
|
public class InetSocketAddress {
|
||
|
private final String host;
|
||
|
private final int port;
|
||
|
|
||
|
public InetSocketAddress(String host, int port) {
|
||
|
this.host = host;
|
||
|
this.port = port;
|
||
|
}
|
||
|
|
||
|
public String getHostName() {
|
||
|
return host;
|
||
|
}
|
||
|
|
||
|
public int getPort() {
|
||
|
return port;
|
||
|
}
|
||
|
}
|