Convenience class which contains a dnssd browser for nodes and sessions.
More...
#include <ravenna_browser.hpp>
|
| class | Subscriber |
| | Baseclass for other classes which need updates on discovered nodes and sessions. More...
|
Convenience class which contains a dnssd browser for nodes and sessions.
Definition at line 36 of file ravenna_browser.hpp.
◆ RavennaBrowser()
| rav::RavennaBrowser::RavennaBrowser |
( |
boost::asio::io_context & | io_context | ) |
|
|
explicit |
◆ find_node()
Finds a node by its name.
- Parameters
-
| node_name | The name of the node to find. |
- Returns
- The service description of the node, or nullptr if not found.
◆ find_session()
Finds a node by its name.
- Parameters
-
| session_name | The name of the node to find. |
- Returns
- The service description of the node, or nullptr if not found.
◆ set_node_browsing_enabled()
| tl::expected< void, const char * > rav::RavennaBrowser::set_node_browsing_enabled |
( |
bool | enabled | ) |
|
Enables or disables browsing for nodes.
- Parameters
-
| enabled | True to enable browsing, false to disable browsing. |
◆ set_session_browsing_enabled()
| tl::expected< void, const char * > rav::RavennaBrowser::set_session_browsing_enabled |
( |
bool | enabled | ) |
|
Enables or disables browsing for nodes.
- Parameters
-
| enabled | True to enable browsing, false to disable browsing. |
◆ subscribe()
| bool rav::RavennaBrowser::subscribe |
( |
Subscriber * | subscriber_to_add | ) |
|
|
nodiscard |
Adds a subscriber to the browser.
- Parameters
-
| subscriber_to_add | The subscriber to add. |
- Returns
- true if the subscriber was added, or false if it was already in the list.
◆ unsubscribe()
| bool rav::RavennaBrowser::unsubscribe |
( |
const Subscriber * | subscriber_to_remove | ) |
|
|
nodiscard |
Removes a subscriber from the browser.
- Parameters
-
| subscriber_to_remove | The subscriber to remove. |
- Returns
- true if the subscriber was removed, or false if it wasn't found.
The documentation for this class was generated from the following file: