clojuressh.impl.socket
Unix domain socket client operations implemented using java.net.UnixDomainSocketAddress and java.nio.channels.SocketChannel.
close
(close channel)Close the given SocketChannel.
open
(open sock-path)Open a connection to the unix domain socket at sock-path. Returns an open SocketChannel on success, or nil on failure.
read
(read channel size)Read exactly size bytes from channel and return a byte-array. Blocks until all bytes are read or end-of-stream is reached. If the stream ends before size bytes have been read, throws an exception.
write
(write channel buffer)Write all bytes in the byte-array buffer to channel. Returns the total number of bytes written.