Classes | |
class | HubDiscovery |
Thread. More... | |
Functions | |
def | _add_listener () |
def | _match_url_to_hub_url (url, hub_uri) |
def | _match_zeroconf_address_to_hub_url (msg, hub_uri) |
def | _resolve_address (msg) |
def | _resolve_url (url) |
def | _zeroconf_services_available () |
|
private |
Looks for the zeroconf services and attempts to add a rocon hub listener. Make sure this is called only after _zeroconf_services_available returns true.
Definition at line 290 of file hub_discovery.py.
|
private |
@param url: The original url used to specify the hub @type string @param hub_uri: The uri constructed by the hub, devoid of any URL scheme @type string: of the form ip:port
Definition at line 239 of file hub_discovery.py.
|
private |
@param msg: The original zeroconf address used to specify the hub @type zeroconf_msgs.DiscoveredService @param hub_uri: The uri constructed by the hub, devoid of any URL scheme @type string: of the form ip:port
Definition at line 263 of file hub_discovery.py.
|
private |
Resolves a zeroconf address into ip/port portions. @var msg : zeroconf_msgs.DiscoveredService @return (string,int) : ip, port pair.
Definition at line 251 of file hub_discovery.py.
|
private |
Resolved a url into ip/port portions using urlparse @var url : The url to parse (may or may not have a scheme) @return (string,int) : ip, port pair
Definition at line 217 of file hub_discovery.py.
|
private |
Check for zeroconf services on startup. If none is found within a suitable timeout, disable this module.
Definition at line 275 of file hub_discovery.py.