|
|
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) |
| |
Glue code to connect to the avahi daemon through dbus and manage
the advertisement of services.
Definition at line 143 of file servicediscovery.py.
◆ __exit__()
| def python.servicediscovery.Publisher.__exit__ |
( |
|
self, |
|
|
|
exc_type, |
|
|
|
exc_value, |
|
|
|
traceback |
|
) |
| |
◆ 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: