Simple Service Discovery on linux

Moonlit picture Moonlit · Aug 1, 2013 · Viewed 9k times · Source

I am trying to implement some kind of service discovery in my network. In particular i want my linux powered devices to be disvored by an Android application. I came across ssdp and this seems to be suitable for my task. I was looking for some ssdp libraries for c++ but did not found any. Do i have to implement it on my own? if so, can you give a brief overview on how this can be done? Or is it just about sending NOTIFY messages over UDP, which can be done without a library!

regards

Answer

Jussi Kukkonen picture Jussi Kukkonen · Aug 2, 2013

Unless using a C library is against your religion, you could use GSSDP: it's a well tested SSDP implementation (it is a part of the GUPnP stack) that only depends on glib, gobject and libsoup. See reference manual and source code.