Liking cljdoc? Tell your friends :D

clj-libssh2.socket


blockcljmacro

(block session timeout & body)

Turn a non-blocking call that returns EAGAIN into a blocking one.

Turn a non-blocking call that returns EAGAIN into a blocking one.
sourceraw docstring

block-returncljmacro

(block-return session timeout & body)

Similar to block, but for functions that return a pointer

Similar to block, but for functions that return a pointer
sourceraw docstring

closeclj

Close a socket

Close a socket
sourceraw docstring

connectclj

(connect address port)

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

Create a socket and connect it to the given address and port.
sourceraw docstring

selectclj

(select session select-read select-write timeout)

Call select on a socket from a clj-libssh2 Session.

Call select on a socket from a clj-libssh2 Session.
sourceraw docstring

send-keepaliveclj

(send-keepalive session)

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

Send a keepalive message and return the number of seconds until the next
time we should send a keepalive.
sourceraw docstring

SIMPLE_SOCKET_BAD_ADDRESSclj

source

SIMPLE_SOCKET_CONNECT_FAILEDclj

source

SIMPLE_SOCKET_SELECT_ERRORclj

source

SIMPLE_SOCKET_SELECT_READclj

source

SIMPLE_SOCKET_SELECT_WRITEclj

source

SIMPLE_SOCKET_SOCKET_FAILEDclj

source

waitclj

(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.

Roughly equivalent to _libssh2_wait_socket in libssh2. Will raise an error
on timeout or just block until it's time to try again.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close