Compatibility layer for java.io vs java.nio sockets to allow an incremental transition to nio, since the JDK's filesystem sockets don't support the java.io socket interface, and we can't use the compatibility layer for bidirectional read and write: https://bugs.openjdk.java.net/browse/JDK-4509080.
Compatibility layer for java.io vs java.nio sockets to allow an incremental transition to nio, since the JDK's filesystem sockets don't support the java.io socket interface, and we can't use the compatibility layer for bidirectional read and write: https://bugs.openjdk.java.net/browse/JDK-4509080.
(accept s)
Accepts a connection on s. Throws ClosedChannelException if s is closed.
Accepts a connection on s. Throws ClosedChannelException if s is closed.
(buffered-input x)
Returns a buffered stream (subset of BufferedInputStream) reading from x.
Returns a buffered stream (subset of BufferedInputStream) reading from x.
(buffered-output x)
Returns a buffered stream (subset of BufferedOutputStream) reading from x.
Returns a buffered stream (subset of BufferedOutputStream) reading from x.
(is-connected? s)
Returns true if socket-like thing s
is currently connected.
Returns true if socket-like thing `s` is currently connected.
(unix-client-socket path)
Returns a filesystem socket bound to the path if the JDK is version 16 or newer or if com.kohlschutter.junixsocket/junixsocket-core can be loaded dynamically. Otherwise throws the ex-info map {:nrepl/kind ::no-filesystem-sockets}.
Returns a filesystem socket bound to the path if the JDK is version 16 or newer or if com.kohlschutter.junixsocket/junixsocket-core can be loaded dynamically. Otherwise throws the ex-info map {:nrepl/kind ::no-filesystem-sockets}.
(unix-server-socket path)
Returns a filesystem socket bound to the path if the JDK is version 16 or newer or if com.kohlschutter.junixsocket/junixsocket-core can be loaded dynamically. Otherwise throws the ex-info map {:nrepl/kind ::no-filesystem-sockets}.
Returns a filesystem socket bound to the path if the JDK is version 16 or newer or if com.kohlschutter.junixsocket/junixsocket-core can be loaded dynamically. Otherwise throws the ex-info map {:nrepl/kind ::no-filesystem-sockets}.
(unix-socket-address path)
Returns a filesystem socket address for the given path string.
Returns a filesystem socket address for the given path string.
(write w byte-array)
(write w byte-array offset length)
Writes the given bytes to the output as per OutputStream write.
Writes the given bytes to the output as per OutputStream write.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close