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

Public Member Functions

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

Public Attributes

 group = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE, None, avahi.DBUS_NAME, group_path, avahi.DBUS_INTERFACE_ENTRY_GROUP, None)

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

◆ __enter__()

python.servicediscovery.Publisher.__enter__ ( self)

Definition at line 148 of file servicediscovery.py.

◆ __exit__()

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

Definition at line 172 of file servicediscovery.py.

◆ add_service()

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.

◆ commit()

python.servicediscovery.Publisher.commit ( self)

Definition at line 169 of file servicediscovery.py.

Member Data Documentation

◆ group

python.servicediscovery.Publisher.group = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE, None, avahi.DBUS_NAME, group_path, avahi.DBUS_INTERFACE_ENTRY_GROUP, None)

Definition at line 152 of file servicediscovery.py.


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