|
service_discovery
|
Description and parameterization of a service. More...
#include <ServiceConfiguration.hpp>
Public Member Functions | |
| ServiceConfiguration () | |
| ServiceConfiguration (const std::string &name, const std::string &type, uint16_t port=12000, uint16_t ttlInMS=0, bool publish=true) | |
| ServiceConfiguration (const ServiceDescription &description) | |
| virtual | ~ServiceConfiguration () |
| uint16_t | getPort () const |
| void | setPort (uint16_t port) |
| void | setTTL (uint16_t ttl) |
| uint16_t | getTTL () const |
| void | setPublishMode (bool mode) |
| bool | getPublishMode () const |
| std::string | toString () |
Public Member Functions inherited from servicediscovery::avahi::ServiceDescription | |
| ServiceDescription () | |
| ServiceDescription (const std::string &servicename) | |
| virtual | ~ServiceDescription () |
| bool | operator== (const ServiceDescription &other) const |
| bool | operator!= (const ServiceDescription &other) const |
| std::string | getName () const |
| void | setName (const std::string &name) |
| bool | compareWithoutTXT (const ServiceDescription &other) const |
| std::string | getDescription (const std::string &label) const |
| void | setDescription (const std::string &label, const std::string &description) |
| void | setRawDescriptions (const std::list< std::string > &descriptions) |
| std::list< std::string > | getRawDescriptions () const |
| std::vector< std::string > | getLabels () const |
| void | setType (const std::string &type) |
| std::string | getType () const |
| void | setProtocol (int protocol) |
| int | getProtocol () const |
| std::string | getProtocolString () const |
| void | setDomain (const std::string &domain) |
| std::string | getDomain () const |
| void | setInterfaceIndex (int interfaceIndex) |
| int | getInterfaceIndex () const |
Friends | |
| class | ServiceDiscovery |
Additional Inherited Members | |
Protected Member Functions inherited from servicediscovery::avahi::ServiceDescription | |
| int | getDescriptionSize () const |
Protected Attributes inherited from servicediscovery::avahi::ServiceDescription | |
| std::string | name_ |
| std::string | type_ |
| AvahiProtocol | protocol_ |
| std::string | domain_ |
| AvahiIfIndex | interfaceIndex_ |
| std::list< std::string > | descriptions_ |
| std::vector< std::string > | labels_ |
Static Protected Attributes inherited from servicediscovery::avahi::ServiceDescription | |
| static const uint32_t | mDNSMaxRecordSize = 200 |
| static const uint32_t | mDNSMaxPayloadSize = 1300 |
Description and parameterization of a service.
| servicediscovery::avahi::ServiceConfiguration::ServiceConfiguration | ( | ) |
| servicediscovery::avahi::ServiceConfiguration::ServiceConfiguration | ( | const std::string & | name, |
| const std::string & | type, | ||
| uint16_t | port = 12000, |
||
| uint16_t | ttlInMS = 0, |
||
| bool | publish = true |
||
| ) |
| name | Name of service |
| type | Type of service such as _foo_type._tcp |
| port | Communication port for avahi |
| ttlInMS | Time-to-live for records |
| publish | Flag to control the publishing mode, if service shall be published set to true |
| servicediscovery::avahi::ServiceConfiguration::ServiceConfiguration | ( | const ServiceDescription & | description | ) |
|
virtual |
| uint16_t servicediscovery::avahi::ServiceConfiguration::getPort | ( | ) | const |
| bool servicediscovery::avahi::ServiceConfiguration::getPublishMode | ( | ) | const |
| uint16_t servicediscovery::avahi::ServiceConfiguration::getTTL | ( | ) | const |
| void servicediscovery::avahi::ServiceConfiguration::setPort | ( | uint16_t | port | ) |
| void servicediscovery::avahi::ServiceConfiguration::setPublishMode | ( | bool | mode | ) |
| void servicediscovery::avahi::ServiceConfiguration::setTTL | ( | uint16_t | ttl | ) |
| std::string servicediscovery::avahi::ServiceConfiguration::toString | ( | ) |
General description of the service
|
friend |
1.8.13