clj-libssh2.socket

block

macro

(block session timeout & body)
Turn a non-blocking call that returns EAGAIN into a blocking one.

block-return

macro

(block-return session timeout & body)
Similar to block, but for functions that return a pointer

close

Close a socket

connect

(connect address port)
Create a socket and connect it to the given address and port.

select

(select session select-read select-write timeout)
Call select on a socket from a clj-libssh2 Session.

send-keepalive

(send-keepalive session)
Send a keepalive message and return the number of seconds until the next
time we should send a keepalive.

SIMPLE_SOCKET_BAD_ADDRESS

SIMPLE_SOCKET_CONNECT_FAILED

SIMPLE_SOCKET_SELECT_ERROR

SIMPLE_SOCKET_SELECT_READ

SIMPLE_SOCKET_SELECT_WRITE

SIMPLE_SOCKET_SOCKET_FAILED

wait

(wait session)(wait session start-time)
Roughly equivalent to _libssh2_wait_socket in libssh2. Will raise an error
on timeout or just block until it's time to try again.