Classes | |
class | HubDiscovery |
Thread. More... | |
Functions | |
def | _add_listener |
def | _match_url_to_hub_url |
def | _match_zeroconf_address_to_hub_url |
def | _resolve_address |
def | _resolve_url |
def | _zeroconf_services_available |
def rocon_hub_client.hub_discovery._add_listener | ( | ) | [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 287 of file hub_discovery.py.
def rocon_hub_client.hub_discovery._match_url_to_hub_url | ( | url, | |
hub_uri | |||
) | [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 236 of file hub_discovery.py.
def rocon_hub_client.hub_discovery._match_zeroconf_address_to_hub_url | ( | msg, | |
hub_uri | |||
) | [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 260 of file hub_discovery.py.
def rocon_hub_client.hub_discovery._resolve_address | ( | msg | ) | [private] |
Resolves a zeroconf address into ip/port portions. @var msg : zeroconf_msgs.DiscoveredService @return (string,int) : ip, port pair.
Definition at line 248 of file hub_discovery.py.
def rocon_hub_client.hub_discovery._resolve_url | ( | url | ) | [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 214 of file hub_discovery.py.
def rocon_hub_client.hub_discovery._zeroconf_services_available | ( | ) | [private] |
Check for zeroconf services on startup. If none is found within a suitable timeout, disable this module.
Definition at line 272 of file hub_discovery.py.