#include <network_service_discovery.h>
This class represents an access point to the service discovery bus. It manages announcements and subscriptions.
Classes |
|
struct | 参数 |
公共成员函数 |
|
MAXON_METHOD Result < void > | 开始 (const 参数 &props) |
MAXON_METHOD Result < void > | 开始 () |
MAXON_METHOD void | Stop () |
MAXON_METHOD Result < ServiceAnnouncementRef > | Announce (const ServiceAnnouncementRequestRef &request) |
MAXON_METHOD Result < ServiceSubscriptionRef > | Subscribe (const ServiceSubscriptionRequestRef &request) |
MAXON_METHOD Uuid | GetLocalUuid () const |
MAXON_METHOD JobQueueRef | GetSyncQueue () const |
静态公共成员函数 |
|
static MAXON_METHOD ServiceBusInterface * | Alloc ( MAXON_SOURCE_LOCATION_DECLARATION ) |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( ServiceBusInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.servicebus") |
|
private |
|
static |
MAXON_METHOD Result <void> Start | ( | const 参数 & | props | ) |
Starts the service bus with custom parameters. After it has been started successfully, the bus broadcasts announcements and listens for subscriptions on the local network.
MAXON_METHOD Result <void> Start | ( | ) |
Starts the service bus with default parameters.
MAXON_METHOD void Stop | ( | ) |
Stops the service bus if it was running.
MAXON_METHOD Result <ServiceAnnouncementRef> Announce | ( | const ServiceAnnouncementRequestRef & | request | ) |
Registers a new announcement at this service bus endpoint.
MAXON_METHOD Result <ServiceSubscriptionRef> Subscribe | ( | const ServiceSubscriptionRequestRef & | request | ) |
Registers a new subscription at this service bus endpoint.
MAXON_METHOD Uuid GetLocalUuid | ( | ) | const |
Returns the UUID that identifies this service bus endpoint.
MAXON_METHOD JobQueueRef GetSyncQueue | ( | ) | const |
Returns the job queue used to synchronize events on this service bus.