Functions
zeroconf_avahi::utilities Namespace Reference

Functions

def same_service
def service_name
def service_to_str

Detailed Description

Created on 01/08/2011

Utility functions

@author: Daniel Stonier

Function Documentation

def zeroconf_avahi.utilities.same_service (   service_one,
  service_two 
)
  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
  

Definition at line 31 of file utilities.py.

def zeroconf_avahi.utilities.service_name (   service_type)
    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.

Definition at line 49 of file utilities.py.

  String representation of zeroconf announcement 

Definition at line 9 of file utilities.py.



zeroconf_avahi
Author(s): Daniel Stonier
autogenerated on Mon Oct 6 2014 09:12:37