Classes | Functions
rocon_hub_client::hub_discovery Namespace Reference

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

Function Documentation

  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.

  @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.

  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.

  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.

  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.



rocon_hub_client
Author(s): Daniel Stonier , Jihoon Lee
autogenerated on Sat Jun 8 2019 18:48:43