mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
Implement socket API
This commit is contained in:
committed by
Joshua Warner
parent
2800ffe826
commit
45ee25f68c
@ -50,7 +50,11 @@ public class SocketChannel extends SelectableChannel
|
||||
}
|
||||
|
||||
public Socket socket() {
|
||||
return new Handle();
|
||||
try {
|
||||
return new Handle();
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean connect(SocketAddress address) throws IOException {
|
||||
@ -165,7 +169,11 @@ public class SocketChannel extends SelectableChannel
|
||||
}
|
||||
|
||||
public class Handle extends Socket {
|
||||
public void setTcpNoDelay(boolean on) throws SocketException {
|
||||
public Handle() throws IOException {
|
||||
super();
|
||||
}
|
||||
|
||||
public void setTcpNoDelay(boolean on) throws SocketException {
|
||||
natSetTcpNoDelay(socket, on);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user