NIO socket communication in clojure
(require '[clj-nio.core :as cnc])
(cnc/start-nio-server (fn
[data]
(println data))
"127.0.0.1"
9006)
(def *c
(cnc/setup-nio-client-socket "127.0.0.1" 9006))
(cnc/write-to-nio-client-socket *c {:nio-works true})