gstlal  1.4.1
Public Member Functions | Public Attributes | List of all members
python.servicediscovery.Publisher Class Reference
Inheritance diagram for python.servicediscovery.Publisher:
[legend]
Collaboration diagram for python.servicediscovery.Publisher:
[legend]

Public Member Functions

def __enter__ (self)
 
def add_service (self, sname, port, stype=None, sdomain=None, host=None, properties=None, commit=True)
 
def commit (self)
 
def __exit__ (self, exc_type, exc_value, traceback)
 

Public Attributes

 group
 

Detailed Description

Glue code to connect to the avahi daemon through dbus and manage
the advertisement of services.

Definition at line 143 of file servicediscovery.py.

Member Function Documentation

◆ __exit__()

def python.servicediscovery.Publisher.__exit__ (   self,
  exc_type,
  exc_value,
  traceback 
)
Unpublish all services.

Definition at line 172 of file servicediscovery.py.

◆ add_service()

def python.servicediscovery.Publisher.add_service (   self,
  sname,
  port,
  stype = None,
  sdomain = None,
  host = None,
  properties = None,
  commit = True 
)
See the Service class for the meaning of the arguments.

If commit is True (the default), then the new service is
advertised immediately along with all other previously
unadvertised services;  otherwise the calling code is
responsible for calling the .commit() method itself.

Definition at line 155 of file servicediscovery.py.


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