Finding Your Local Network, part 2

by havoc

I got a fair bit of useful feedback on my last post about local
service discovery. I also have some initial
up and running to illustrate the approach. (This code
requires D-Bus 1.1.1 or higher.)

For now the code uses a straightforward but probably too inefficient
implementation, where each session connects to each other
session. Modifying it to use TXT records for everything or certain
things is possible. Hopefully the higher level of abstraction means
that the most efficient way to use Avahi can be globally worked out,
instead of per-app.

The main idea here is to make it dead easy to use local service
discovery for per-session user services (as opposed to say a printer),
without having to understand all the networking specs.

(This post was originally found at

My Twitter account is @havocp.
Interested in becoming a better software developer? Sign up for my email list and I'll let you know when I write something new.