Low-level protocol details
Low-level protocol details
(read-telnet-code buf-seq)
Given a sequence of bytes, attempt to find a telnet escape command sequence. If we found what might be an incomplete sequence, returns :-incomplete. If we found a complete sequence, returns a map with the decoded telnet sequence in :telnet, and the byte sequence before and after it in :before and :after, respectively
Given a sequence of bytes, attempt to find a telnet escape command sequence. If we found what might be an incomplete sequence, returns :-incomplete. If we found a complete sequence, returns a map with the decoded telnet sequence in :telnet, and the byte sequence before and after it in :before and :after, respectively
(split-line buf-seq)
Given a sequence of non-telnet-escape bytes, if there is a
character, return a tuple of [string, remaining], where string
is
the string value of the input, and remaining
is the remaining
sequence of bytes.
Given a sequence of non-telnet-escape bytes, if there is a character, return a tuple of [string, remaining], where `string` is the string value of the input, and `remaining` is the remaining sequence of bytes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close