Skip to content

DNS-SD (aka ZeroConf, Bonjour, Avahi) interface for Julia

License

Notifications You must be signed in to change notification settings

notinaboat/ZeroConf.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroConf.jl

DNS Service Discovery (DNS-SD, ZeroConf, Bonjour) interface for Julia.

On macOS (or BSD) this package uses the dns-sd tool (see man dns-sd). On Linux the Avahi tools are used instead (apt-get install avahi-utils).

dns_service_browse([type = "_http._tcp"]) -> Channel{DNSService}

Open a channel to browse for DNS Services of a certian type. Reading from channel yeilds pairs: name => (host, port).

e.g.

julia> c = dns_service_browse()
julia> take!(c)
"AxisCamera" => ("axis-ptz.local.", 80)
register_dns_service(name, service_type, port)

Register a DNS Service.

unregister_dns_service(name)

Cancel a service registered by register_dns_service.

About

DNS-SD (aka ZeroConf, Bonjour, Avahi) interface for Julia

Resources

License

Stars

Watchers

Forks

Packages

No packages published