Liking cljdoc? Tell your friends :D

clj-telnet.core


*charset*clj

Charset for read-until, read-until-or, read-all, write

Charset for read-until, read-until-or, read-all, write
sourceraw docstring

*read-err*clj

(*read-err* e)

read-err will be called when some SocketTimeoutException exception occours.

read-err will be called when some SocketTimeoutException exception occours.
sourceraw docstring

*read-in-char*clj

(*read-in-char* c)

read-in-char will be called when read a char, so can be binded to a function that can do something such as logging.

read-in-char will be called when read a char, so can be binded to a function that can do something such as logging.
sourceraw docstring

*write-out-data*clj

(*write-out-data* data)

write-out-data will be called when write some data, so can be binded to a function that can do something such as logging.

write-out-data will be called when write some data, so can be binded to a function that can do something such as logging.
sourceraw docstring

get-telnetclj

(get-telnet server-ip)
(get-telnet server-ip
            port
            &
            {:keys [connect-timeout default-timeout]
             :or {connect-timeout 5000 default-timeout 15000}})

returns a telnetclient given server-ip as String and port as int. Support options: :connet-timeout (default 5000) :default-timeout (default 15000) Add method close so that the object can be used with with-open.

returns a telnetclient given server-ip as String and port as int.
Support options:
:connet-timeout (default 5000)
:default-timeout (default 15000)
Add method close so that the object can be used with with-open.
sourceraw docstring

kill-telnetclj

(kill-telnet telnet-client)

disconnects telnet-client

disconnects telnet-client
sourceraw docstring

read-allclj

(read-all telnet)

Attempts to read all the data from the telnet stream. Should probably only be used in repl

Attempts to read all the data from the telnet stream.
Should probably only be used in repl
sourceraw docstring

read-untilclj

(read-until telnet pattern)
(read-until telnet pattern timeout)

reads the input stream of a telnet client till it finds pattern

reads the input stream of a telnet client till it finds pattern
sourceraw docstring

read-until-orclj

(read-until-or telnet patterns)
(read-until-or telnet patterns timeout)

reads the input stream of a telnet client until it finds pattern or the timeout (milliseconds) is reached returns read data as a string. patterns is a vector of Strings of Regexs.

reads the input stream of a telnet client until it finds pattern or the timeout
(milliseconds) is reached returns read data as a string.
patterns is a vector of Strings of Regexs.
sourceraw docstring

with-telnetcljmacro

(with-telnet bindings & body)
sourceraw docstring

writeclj

(write telnet s)
(write telnet s cr)

writes to the output stream of a telnet client

writes to the output stream of a telnet client
sourceraw docstring

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

× close