Backend interface the host installs to get real mDNS.
More...
#include <volume_detector.hpp>
Backend interface the host installs to get real mDNS.
Every method can no-op on unsupported backends. The core layer dispatches browse/register/unregister to the backend and forwards discovered/lost events back through on_service_found / on_service_lost.
◆ ~Backend()
| virtual pulp::events::NetworkServiceDiscovery::Backend::~Backend |
( |
| ) |
|
|
virtualdefault |
◆ browse()
| virtual void pulp::events::NetworkServiceDiscovery::Backend::browse |
( |
std::string_view | service_type, |
|
|
NetworkServiceDiscovery & | owner ) |
|
pure virtual |
◆ register_service() [1/2]
| virtual bool pulp::events::NetworkServiceDiscovery::Backend::register_service |
( |
std::string_view | name, |
|
|
std::string_view | type, |
|
|
uint16_t | port ) |
|
pure virtual |
◆ register_service() [2/2]
| virtual bool pulp::events::NetworkServiceDiscovery::Backend::register_service |
( |
std::string_view | name, |
|
|
std::string_view | type, |
|
|
uint16_t | port, |
|
|
const TxtRecords & | ) |
|
inlinevirtual |
Default implementation drops the TXT records and forwards to the base three-argument register_service.
Backends with real TXT support (e.g., Bonjour) override this method.
◆ stop()
| virtual void pulp::events::NetworkServiceDiscovery::Backend::stop |
( |
| ) |
|
|
pure virtual |
◆ unregister_service()
| virtual void pulp::events::NetworkServiceDiscovery::Backend::unregister_service |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: