hi, I'm working on a basic single-threaded echo server for fun and learning (short-term goal is to have a simple chat server), and I'm at a point where I'd appreciate some feedback on refactoring a few functions. I've put them in a paste here, https://www.refheap.com/paste/12068 with some comments to explain the logic (or lack of it, as the case may be!).
What I'd really appreciate are comments on: * better ways to isolate changing state in the clients' ByteBuffers from reading these buffers -- since the act of reading a buffer changes its state in the first place this gets a little hairy. * maybe some better practices in dealing with ByteBuffers in the first place, this is the first time I've used them directly. thanks for any help, George -- -- 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/groups/opt_out.