#include <network_zeroconf.h>
Class to watch ZeroConf notifications. After starting the browser the signals ObservableDetected and ObservableResolved will be fired whenever machines hooking up, removing from or updating this service. Objects of this class needs to be allocated using NetworkZeroConfInterface::AllocBrowser(). This class if reference counted.
Public Member Functions | |
MAXON_METHOD Result< void > | Start () |
MAXON_METHOD void | Stop () |
MAXON_OBSERVABLE (ZEROCONFACTION, ObservableDetected,(const NetworkZeroConfBrowserRef &ref, const String &serviceName, Int networkAdapter, ZEROCONFMACHINESTATE state, Bool moreComing, ZEROCONFERROR error, void *context), ObservableCombinerRunAllEnumFlagsOrComponent) | |
MAXON_OBSERVABLE (void, ObservableResolved,(const NetworkZeroConfBrowserRef &ref, const String &serviceName, const String &fullyQualifiedDomainName, Int port, Int networkAdapter, Bool txtRecordUpdate, const DataDictionary &values, ZEROCONFERROR error, void *context), ObservableCombinerRunAllComponent) | |
Private Member Functions | |
MAXON_INTERFACE (NetworkZeroConfBrowserInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.networkzeroconfbrowser") | |
|
private |
MAXON_METHOD Result<void> Start | ( | ) |
Registers and starts the ZeroConf browser. Make sure that you setup the signals (ObservableDetect, ObservableResolved) before starting the browser.
MAXON_METHOD void Stop | ( | ) |
Stops and unregister the ZeroConf browser. The callback will not triggered afterwards anymore.
MAXON_OBSERVABLE | ( | ZEROCONFACTION | , |
ObservableDetected | , | ||
(const NetworkZeroConfBrowserRef &ref, const String &serviceName, Int networkAdapter, ZEROCONFMACHINESTATE state, Bool moreComing, ZEROCONFERROR error, void *context) | , | ||
ObservableCombinerRunAllEnumFlagsOrComponent | |||
) |
MAXON_OBSERVABLE | ( | void | , |
ObservableResolved | , | ||
(const NetworkZeroConfBrowserRef &ref, const String &serviceName, const String &fullyQualifiedDomainName, Int port, Int networkAdapter, Bool txtRecordUpdate, const DataDictionary &values, ZEROCONFERROR error, void *context) | , | ||
ObservableCombinerRunAllComponent | |||
) |