|
| def | __init__ (self, group, sname, port, stype=None, sdomain=None, host=None, properties=None) |
| |
| def | set_properties (self, properties=None) |
| |
|
|
def | properties_to_txt_array (properties) |
| |
|
|
| group |
| |
|
| sname |
| |
|
| stype |
| |
|
| sdomain |
| |
Add a service to a group, and allow its properties to be updated
later.
Definition at line 63 of file servicediscovery.py.
◆ __init__()
| def 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.
◆ set_properties()
| def 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.
The documentation for this class was generated from the following file: