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

Abstract transport node base classes used by all VLink node implementations. 更多...

#include <any>
#include <atomic>
#include <functional>
#include <memory>
#include <string>
#include "../base/bytes.h"
#include "../extension/status.h"
#include "../impl/conf.h"
#include "../impl/types.h"
#include "./intra_data.h"
#include "./ssl_options.h"
node_impl.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

 Minimal interface for accessing the underlying native transport handle. 更多...
 Abstract base for all VLink transport backend node implementations. 更多...

命名空间

详细描述

Abstract transport node base classes used by all VLink node implementations.

This header defines two base classes that form the backbone of the VLink transport abstraction:

  • AbstractNode – minimal interface for retrieving the underlying native transport handle (e.g. a DDS DataWriter pointer).
  • NodeImpl – the main base class for PublisherImpl, SubscriberImpl, ServerImpl, ClientImpl, SetterImpl, and GetterImpl. It provides common infrastructure:
Feature API
Transport initialise init() / deinit()
Zero-copy loan loan() / return_loan()
Suspend / resume suspend() / resume()
Interrupt interrupt() / reset_interrupted()
Property store set_property() / get_property()
Message loop attach attach() / detach() / get_message_loop()
Status callback register_status_handler() / call_status()
Data recording set_record_path() / try_record()
Discovery registration init_ext() / deinit_ext()
Version check check_version()
Global init global_init() – called once per process
Callback Types
NodeImpl defines the standardised callback signatures used throughout all transport backends:
Type Signature Used by
ConnectCallback void(bool) PublisherImpl, ClientImpl, ServerImpl
StatusCallback void(const Status::BasePtr&) DDS status events
SyncCallback void() SetterImpl sync
ReqRespCallback void(uint64_t, const Bytes&, Bytes*) ServerImpl listen
MsgCallback void(const Bytes&) SubscriberImpl, GetterImpl
IntraMsgCallback void(const IntraData&) intra:// subscriber