Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::events::NetworkServiceDiscovery::Backend Class Referenceabstract

Backend interface the host installs to get real mDNS. More...

#include <volume_detector.hpp>

Public Member Functions

virtual ~Backend ()=default
virtual void browse (std::string_view service_type, NetworkServiceDiscovery &owner)=0
virtual void stop ()=0
virtual bool register_service (std::string_view name, std::string_view type, uint16_t port)=0
virtual bool register_service (std::string_view name, std::string_view type, uint16_t port, const TxtRecords &)
 Default implementation drops the TXT records and forwards to the base three-argument register_service.
virtual void unregister_service ()=0

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Backend()

virtual pulp::events::NetworkServiceDiscovery::Backend::~Backend ( )
virtualdefault

Member Function Documentation

◆ 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: