1.2.0 permalink Arrow_down_16x16

decode-message

swank.rpc

  • (decode-message rdr)
Read an rpc message encoded using the swank rpc protocol.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/rpc.clj:75 top

(defn decode-message
   "Read an rpc message encoded using the swank rpc protocol." 
  ([#^Reader rdr]
    (let [packet (read-packet rdr)]
       (log-event "READ: %s\n" packet)
       (try
         (with-open [rdr (PushbackReader. (StringReader. packet))]
           (read-form rdr))
         (catch Exception e
           (list :reader-error packet e))))))
Vars in swank.rpc/decode-message: defn let list with-open
Used in 0 other vars

Comments top

No comments for decode-message. Log in to add a comment.