Classes | Functions
rocon_hub_client.hub_discovery Namespace Reference

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 ()
 

Function Documentation

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 290 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 239 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 263 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 251 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 217 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 275 of file hub_discovery.py.



rocon_hub_client
Author(s): Daniel Stonier , Jihoon Lee
autogenerated on Mon Jun 10 2019 14:40:08