I took a stab at it for 10 minutes, but I'm way too rusty.

Last year I implemented the blockchain wire protocol with gloss that might 
be helpful: https://gist.github.com/danneu/7397350

Here's the spec: https://en.bitcoin.it/wiki/Protocol_specification

The var-int-codec is a somewhat complex 
example: https://gist.github.com/danneu/7397350#file-1-codec-clj-L55-L83

I remember using `compile-frame` whenever I got stuck so I could implement 
its pre/post-process fns to transform data that I couldn't figure out how 
to fully define in a frame.

(compile-frame
   _frame_
   ;; Pre-encode
   (fn [_]
     ...)
   ;; Post-decode
   (fn [_]
     ...))

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to