Created on 01/08/2011 Utility functions @author: Daniel Stonier
Sometimes you'll see the same service on multiple interfaces - this will often happen on localhost where the service will be getting advertised on whatever network devices you currently have running (e.g. eth0 and wlan1). In these cases, we assume they're equal. In fact, the important properties uniquely identifying the service for us (remembering that we're discovering on a particular domain and service_type) are: service_name, port, domain
This emulates what python-avahi's ServiceTypeDatabase class does in conjuction with /usr/share/service-types and /usr/lib/avahi/service-types.db. We could just roll out further .db's which would then get it to print nice englishified versions of the service types for any zeroconf browser, however we're really only interested in making it functional internally (ros-internally) for now. So just hacking it in code for now.