std::function< void(const IntraData &)> IntraMsgCallback
Callback delivering an in-process IntraData message.
定义 node_impl.h:186
std::function< void(const Bytes &)> MsgCallback
Callback delivering a raw serialised message to a SubscriberImpl or GetterImpl.
定义 node_impl.h:177
SubscriberImpl()
Protected constructor; initialises the subscriber with kSubscriber role.
virtual bool listen(IntraMsgCallback &&callback)
Registers the zero-copy in-process receive callback.
virtual SampleLostInfo get_lost() const
Returns cumulative sample delivery statistics.
virtual bool listen(MsgCallback &&callback)=0
Registers the serialised-message receive callback.
virtual int64_t get_latency() const
Returns the most recently measured end-to-end message latency in microseconds.
virtual void set_latency_and_lost_enabled(bool enable)
Enables or disables per-message latency and sample-loss tracking.
bool is_listened
true after listen() has been successfully called.
定义 subscriber_impl.h:145
~SubscriberImpl() override
Destructor.
virtual bool is_latency_and_lost_enabled() const
Returns whether latency and sample-loss tracking is currently enabled.
#define VLINK_EXPORT
定义 macros.h:85
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
定义 macros.h:184
Abstract transport node base classes used by all VLink node implementations.
Cumulative sample delivery statistics for a subscriber or getter.
定义 types.h:217