gstlal 1.13.0
Loading...
Searching...
No Matches
python.servicediscovery.Service Class Reference
Inheritance diagram for python.servicediscovery.Service:
Collaboration diagram for python.servicediscovery.Service:

Public Member Functions

 __init__ (self, group, sname, port, stype=None, sdomain=None, host=None, properties=None)
 set_properties (self, properties=None)

Static Public Member Functions

 properties_to_txt_array (properties)

Public Attributes

 group = group
 sname = sname
 stype = stype if stype is not None else DEFAULT_SERVICE_TYPE
 sdomain = sdomain if sdomain is not None else DEFAULT_SERVICE_DOMAIN

Detailed Description

Add a service to a group, and allow its properties to be updated
later.

Definition at line 63 of file servicediscovery.py.

Constructor & Destructor Documentation

◆ __init__()

python.servicediscovery.Service.__init__ ( self,
group,
sname,
port,
stype = None,
sdomain = None,
host = None,
properties = None )
Add a service to the collection of services currently
advertised.  sname and port specify the service name and
the port number on which the service can be found.  stype
and sdomain set the service type and service domain;  if
not set the module-level symbols DEFAULT_SERVICE_TYPE and
DEFAULT_SERVICE_DOMAIN are used, respectively.

Avahi is asked to advertise the service on all network
interfaces to which it is connected.  If host is "" (the
default) then on each interface avahi will use the host
name corresponding to that network interface (as determined
by itself).  This is a convenient way to ensure the service
is advertised on each interface with a host name that
exists on that interface's network.

properties is a dictionary of name-value pairs all of which
are strings.  "=" is not allowed in any of the names.

Definition at line 77 of file servicediscovery.py.

Member Function Documentation

◆ properties_to_txt_array()

python.servicediscovery.Service.properties_to_txt_array ( properties)
static

Definition at line 69 of file servicediscovery.py.

◆ set_properties()

python.servicediscovery.Service.set_properties ( self,
properties = None )
properties is a dictionary of name-value pairs all of which
are strings.  "=" is not allowed in any of the names.

Definition at line 126 of file servicediscovery.py.

Member Data Documentation

◆ group

python.servicediscovery.Service.group = group

Definition at line 101 of file servicediscovery.py.

◆ sdomain

python.servicediscovery.Service.sdomain = sdomain if sdomain is not None else DEFAULT_SERVICE_DOMAIN

Definition at line 104 of file servicediscovery.py.

◆ sname

python.servicediscovery.Service.sname = sname

Definition at line 102 of file servicediscovery.py.

◆ stype

python.servicediscovery.Service.stype = stype if stype is not None else DEFAULT_SERVICE_TYPE

Definition at line 103 of file servicediscovery.py.


The documentation for this class was generated from the following file: