(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.
(kill-telnet telnet-client)
disconnects telnet-client
disconnects telnet-client
(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
(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
(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.
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close