ServiceAnnouncementInterface Class Reference

#include <network_service_discovery.h>

详细描述

An active service announcement.

Public Types

using  ModifierCallback = Delegate < Result < void >( ServiceDiscovery::DataMap &customData)>

公共成员函数

MAXON_METHOD ServiceBusRef  GetServiceBus () const
MAXON_METHOD void  取消 ()
MAXON_METHOD Result < void >  ModifyCustomData (const ModifierCallback &modifyFunc)

私有成员函数

  MAXON_INTERFACE_NONVIRTUAL ( ServiceAnnouncementInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.serviceannouncement")

Member Typedef Documentation

◆  ModifierCallback

using ModifierCallback = Delegate < Result <void>( ServiceDiscovery::DataMap & customData)>

成员函数文档编制

◆  MAXON_INTERFACE_NONVIRTUAL()

MAXON_INTERFACE_NONVIRTUAL ( ServiceAnnouncementInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.serviceannouncement"   
)
private

◆  GetServiceBus()

MAXON_METHOD ServiceBusRef GetServiceBus ( ) const

Returns the service bus this announcement is bound to.

◆  Cancel()

MAXON_METHOD void Cancel ( )

Cancels the announcement if it is active.

◆  ModifyCustomData()

MAXON_METHOD Result <void> ModifyCustomData ( const ModifierCallback modifyFunc )

Calls the passed delegate, which can then modify the custom data associated with this announcement.