mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
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)
This commit is contained in:
19
classpath/java/net/InetSocketAddress.java
Normal file
19
classpath/java/net/InetSocketAddress.java
Normal file
@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user