![]() |
NDEVR
API Documentation
|
Describes settings for performing a Connection search. More...
Public Types | |
| enum | SearchReturn { e_continue_searching , e_stop_searching } |
| The return value from a search callback, indicating whether to continue or stop. More... | |
Public Attributes | |
| Buffer< ConnectionCategory > | allowed_categories |
| Categories to include in the search. Empty means all categories. | |
| LogPtr | log |
| Log for search diagnostics. | |
| std::function< SearchReturn(const ConnectionInfo &)> | on_device_found = nullptr |
| Callback invoked when a device is discovered. | |
| std::function< SearchReturn(const ConnectionInfo &)> | on_service_found = nullptr |
| Callback invoked when a service is discovered. | |
| TimeSpan | timeout = TimeSpan(30.0) |
| Maximum duration to search before stopping. | |
The return value from a search callback, indicating whether to continue or stop.
| Enumerator | |
|---|---|
| e_continue_searching | Continue scanning for more connections. |
| e_stop_searching | Stop the search immediately. |
Definition at line 153 of file Connection.h.