#include <network_zeroconf.h>
NetworkZeroConfServiceInterface allows to broadcast a new network service. Objects for this class will be created using NetworkZeroConfInterface::AllocService() .
公共成员函数 |
|
MAXON_METHOD Result < void > | 开始 () |
MAXON_METHOD Result < void > | Stop () |
MAXON_METHOD Result < void > | SetTXTRecord (const DataDictionary &values) |
MAXON_METHOD Result < void > | RemoveTXTRecord () |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( NetworkZeroConfServiceInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.networkzeroconfservice") |
|
private |
MAXON_METHOD Result <void> Start | ( | ) |
Starts the Service. Other machines will be able to detect this service on the current machine.
MAXON_METHOD Result <void> Stop | ( | ) |
Stops the Service. Other machines are not longer able to detect this service on the current machine.
MAXON_METHOD Result <void> SetTXTRecord | ( | const DataDictionary & | values | ) |
Adds/Updates the TXT records for the Service. Other machines will see this keys/values when they browse this service.
[in] | values | DataDictionary of values. The ids of the values should be strings. Otherwise the ids are converted into strings using ToString() . |
MAXON_METHOD Result <void> RemoveTXTRecord | ( | ) |
Remove all TXT records for the Service. Other machines will not longer see additional informations when they browse this service.