Giter VIP home page Giter VIP logo

clojure-zeroconf's Introduction

clojure-zeroconf

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)

Releases

1.2.0, 2013-10-17

Merge from Adam Clements. Clojure dependency 1.5.1.

1.1.0, 2013-03-08

Added server (register/unregister) component. Bumped Clojure dependency to 1.5.0.

1.0.0, 2012-12-28

Initial client release.

License

Copyright © 2013 Nick Rothwell, [email protected]

Distributed under the Eclipse Public License, the same as Clojure.

clojure-zeroconf's People

Contributors

adamclements avatar cassiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

clojure-zeroconf's Issues

Figuring out which service name to use.

Hello,
I am trying to run a test to see if I can find a device (Intel Galileo) on my network. I was able to discover it using a node.js zeroconf implementation (Polo). But am having trouble figuring out what to put on line one here:

(def a (cl/listen "_udp.local.")) ;; How do I tell what to listen to?
(print (cl/examine a))

After searching for some time I was only able to find the standard for service names, but no specific examples of how to figure one out. Am I over thinking this?

Thank you for putting this lib together,
-Boris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.