corda/classpath/java/net/InetSocketAddress.java
Eric Scharff 98269286e5 Implemented a basic NIO socket channel interface. Non-blocking socket channels
and server socket channels are implemented.  This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)
2007-10-05 15:32:56 -06:00

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;
}
}