|
| template<typename ConfT , typename SecurityConfigT = Security::Config, typename = std::enable_if_t<std::is_base_of_v<Conf, ConfT>>> |
| | SecurityPublisher (const ConfT &conf, SecurityConfigT &&sec_cfg={}, InitType type=InitType::kWithInit) |
| | Constructs a SecurityPublisher from a typed configuration object. 更多...
|
| |
| template<typename SecurityConfigT = Security::Config> |
| | SecurityPublisher (const std::string &url_str, SecurityConfigT &&sec_cfg={}, InitType type=InitType::kWithInit) |
| | Constructs a SecurityPublisher from a URL string. 更多...
|
| |
| | Publisher (const ConfT &conf, InitType type=InitType::kWithInit) |
| | Constructs a publisher from a typed transport configuration object. 更多...
|
| |
| | Publisher (const std::string &url_str, InitType type=InitType::kWithInit) |
| | Constructs a publisher from a URL string. 更多...
|
| |
| void | detect_subscribers (ConnectCallback &&callback) |
| | Registers a callback invoked whenever subscriber presence transitions. 更多...
|
| |
| bool | wait_for_subscribers (std::chrono::milliseconds timeout=Timeout::kDefaultInterval) |
| | Blocks until at least one subscriber is detected or timeout expires. 更多...
|
| |
| bool | has_subscribers () const |
| | Non-blocking query of subscriber presence. 更多...
|
| |
| bool | publish (const MsgT &msg, bool force=false) |
| | Serialises and emits msg to every connected subscriber. 更多...
|
| |
| bool | publish_fbb (const void *fbb, bool force=false) |
| | Publishes the raw payload of a pre-finished flatbuffers::FlatBufferBuilder. 更多...
|
| |
| void | mark_as_setter () |
| | Promotes this publisher to behave as a Setter (field-writer) at the transport layer. 更多...
|
| |
| virtual bool | init () |
| | Initialises the node and its transport back-end. 更多...
|
| |
| virtual bool | deinit () |
| | Tears the node down and releases all transport resources. 更多...
|
| |
| virtual void | interrupt () |
| | Aborts any blocking wait on this node. 更多...
|
| |
| bool | has_inited () const |
| | Reports whether init() has been successfully called. 更多...
|
| |
| bool | is_support_loan () const |
| | Reports whether the transport supports zero-copy loaned buffers. 更多...
|
| |
| Bytes | loan (int64_t size) |
| | Allocates a loaned buffer from the transport memory pool. 更多...
|
| |
| bool | return_loan (const Bytes &bytes) |
| | Returns a previously loaned buffer to the transport pool. 更多...
|
| |
| virtual void | set_manual_unloan (bool manual_unloan) |
| | Toggles manual-unloan mode for zero-copy receives. 更多...
|
| |
| virtual bool | is_manual_unloan () const |
| | Reports whether manual-unloan mode is currently active. 更多...
|
| |
| bool | suspend () |
| | Suspends message delivery on this node. 更多...
|
| |
| bool | resume () |
| | Resumes message delivery after a prior suspend(). 更多...
|
| |
| bool | is_suspend () const |
| | Reports whether the node is currently suspended. 更多...
|
| |
| bool | attach (class MessageLoop *message_loop) |
| | Attaches the node to a MessageLoop for callback dispatch. 更多...
|
| |
| bool | detach () |
| | Detaches the node from its current MessageLoop. 更多...
|
| |
| class MessageLoop * | get_message_loop () const |
| | Returns the MessageLoop this node is currently attached to. 更多...
|
| |
| const AbstractNode * | get_abstract_node () const |
| | Returns the abstract-graph handle for runtime topology inspection. 更多...
|
| |
| Status::BasePtr | get_status (Status::Type type) const |
| | Retrieves the current status object for the requested category. 更多...
|
| |
| void | register_status_handler (StatusCallback &&callback) |
| | Registers a handler invoked whenever the node's status changes. 更多...
|
| |
| void | set_property (const std::string &prop, const std::string &value) |
| | Sets a transport-specific string-keyed property. 更多...
|
| |
| std::string | get_property (const std::string &prop) const |
| | Retrieves a previously set transport-specific property value. 更多...
|
| |
| TransportType | get_transport_type () const |
| | Returns the TransportType this node is bound to. 更多...
|
| |
| const std::string & | get_url () const |
| | Returns the URL string used to construct this node. 更多...
|
| |
| void | set_record_path (const std::string &path) |
| | Enables recording of inbound or outbound messages to a bag file. 更多...
|
| |
| void | set_ser_type (const std::string &ser_type, SchemaType schema_type=SchemaType::kUnknown) |
| | Overrides the runtime wire-metadata identifiers for this node. 更多...
|
| |
| const std::string & | get_ser_type () const |
| | Returns the current concrete runtime type identifier. 更多...
|
| |
| SchemaType | get_schema_type () const |
| | Returns the current coarse schema family. 更多...
|
| |
| void | set_discovery_enabled (bool enable) |
| | Toggles peer-discovery on this node. 更多...
|
| |
| bool | get_discovery_enabled () const |
| | Reports whether peer-discovery is currently enabled. 更多...
|
| |
| void | bind_proto_arena (void *proto_arena) |
| | Binds a Protobuf Arena for arena-allocated message objects. 更多...
|
| |
| double | get_cpu_usage () const |
| | Returns the cumulative CPU-usage ratio sampled by the profiler. 更多...
|
| |
| bool | get_safety_quit () const |
| | Reports whether safe-quit mode is currently active. 更多...
|
| |
| void | set_safety_quit (bool safety_quit) |
| | Enables or disables safe-quit mode. 更多...
|
| |
| void | set_ssl_options (const SslOptions &options) |
| | Configures transport-layer SSL/TLS encryption for this node. 更多...
|
| |
template<typename MsgT>
class vlink::SecurityPublisher< MsgT >
Convenience alias of Publisher with per-message security enabled.
Equivalent to Publisher<MsgT, SecurityType::kWithSecurity>. Every outgoing payload is encrypted with the configured Security::Config before transmission; an empty config falls back to the built-in default symmetric slot.
- 注解
- Security is not supported on
intra:// or on dds:// CDR payloads – using a SecurityPublisher in those configurations is a constructor-time fatal.
- 模板参数
-
| MsgT | C++ message type to publish. |