jmDNS-based zeroconf in Clojure.
For documentation and usage see the Marginalia documentation.
Artifact information here.
Very quick start (client):
(ns user
(:require (cassiel.zeroconf [client :as cl])))
(def a (cl/listen "_ssh._tcp.local."))
(pprint (cl/examine a))
{"Arnavutköy" {:server "Arnavutk-y.local.", :port 22},
"Sultanahmet" {:server "Sultanahmet.local.", :port 22},
"Topkapı" {:server "Topkap-3.local.", :port 22}}
(cl/close a)
Server:
(ns user
(:require (cassiel.zeroconf [server :as s])))
(def server (s/server :type "_cubewar._udp.local."
:name "Test Cubewar"
:port 8765
:text "A test Cubewar server"))
(s/open server)
(s/close server)
Merge from Adam Clements. Clojure dependency 1.5.1
.
Added server (register/unregister) component. Bumped Clojure dependency to 1.5.0
.
Initial client release.
Copyright © 2013 Nick Rothwell, [email protected]
Distributed under the Eclipse Public License, the same as Clojure.