Liking cljdoc? Tell your friends :D

clj-telnet.core


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)

returns a telnetclient given server-ip as String and port as int.
Support options:
:connet-timeout (default 5000)
:default-timeout (default 15000)
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)

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-telnetclj

(with-telnet telnet f)
source

writeclj

(write telnet s)

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