VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
subscriber_impl.h 文件参考

Abstract base class for all transport-specific subscriber implementations. 更多...

#include "./node_impl.h"
subscriber_impl.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

 Transport-agnostic base for subscriber node implementations. 更多...

命名空间

详细描述

Abstract base class for all transport-specific subscriber implementations.

SubscriberImpl is the intermediate layer between the generic Subscriber<T> template and a concrete transport backend (e.g. DdsSubscriberImpl, ShmSubscriberImpl). It inherits from NodeImpl and adds receive-side semantics:

  • Two listen overloads: a serialised MsgCallback for network transports and a zero-copy IntraMsgCallback for the intra:// backend.
  • Optional latency and sample-loss tracking via CalculateSample.
  • A public is_listened flag indicating whether a listener has been installed.
注解
Concrete subclasses must implement listen(MsgCallback&&). listen(IntraMsgCallback&&) is only overridden by IntraSubscriberImpl; all other transports inherit the base no-op that logs a warning and returns false.