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)
Added server (register/unregister) component. Bumped Clojure dependency to 1.5.0
.
Initial client release.
Copyright © 2013 Nick Rothwell, nick@cassiel.eu
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation? These fine people already did:
nick rothwell & Nick RothwellEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close