|
VLink 2.0.0
A high-performance communication middleware
|
Abstract base class for all transport-specific subscriber implementations. 更多...
#include "./node_impl.h"类 | |
| class | vlink::SubscriberImpl |
| Transport-agnostic base for subscriber node implementations. 更多... | |
命名空间 | |
| namespace | vlink |
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:
MsgCallback for network transports and a zero-copy IntraMsgCallback for the intra:// backend.CalculateSample.is_listened flag indicating whether a listener has been installed.listen(MsgCallback&&). listen(IntraMsgCallback&&) is only overridden by IntraSubscriberImpl; all other transports inherit the base no-op that logs a warning and returns false.