NetworkZeroConfServiceInterface Class Reference

#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")

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( NetworkZeroConfServiceInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.networkzeroconfservice"   
)
private

◆  Start()

MAXON_METHOD Result <void> Start ( )

Starts the Service. Other machines will be able to detect this service on the current machine.

返回
OK on success.

◆  Stop()

MAXON_METHOD Result <void> Stop ( )

Stops the Service. Other machines are not longer able to detect this service on the current machine.

返回
OK on success. @MAXON_ANNOTATION{default=OK}

◆  SetTXTRecord()

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() .
返回
OK on success.

◆  RemoveTXTRecord()

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.

返回
OK on success.