#include <shared_transport.hpp>
|
| using | RawHandler = std::function<void(const void*, int)> |
|
| bool | publish_raw (const std::string &channel, const void *data, int data_len, bool reliable, bool retained, int retry_interval_ms, std::uint32_t max_retries) |
| template<raccoon::TransportMessage T> |
| bool | publish (const std::string &channel, const T &message, const raccoon::PublishOptions &options={}) |
| std::uint64_t | subscribe_raw (const std::string &channel, RawHandler handler, bool reliable, bool request_retained) |
| template<raccoon::TransportMessage T> |
| std::uint64_t | subscribe (const std::string &channel, std::function< void(const T &)> handler, const raccoon::SubscribeOptions &options={}) |
| void | unsubscribe (std::uint64_t subscription_id) |
| raccoon::TransportStats | get_and_reset_stats () |
| std::size_t | active_subscription_count () const |
| void | shutdown () |
| | SharedTransport (const SharedTransport &)=delete |
| SharedTransport & | operator= (const SharedTransport &)=delete |
Definition at line 17 of file shared_transport.hpp.
◆ RawHandler
◆ SharedTransport()
| libstp::transport_core::SharedTransport::SharedTransport |
( |
const SharedTransport & | | ) |
|
|
delete |
◆ active_subscription_count()
| std::size_t libstp::transport_core::SharedTransport::active_subscription_count |
( |
| ) |
const |
|
nodiscard |
◆ get_and_reset_stats()
| raccoon::TransportStats libstp::transport_core::SharedTransport::get_and_reset_stats |
( |
| ) |
|
|
nodiscard |
◆ instance()
◆ operator=()
◆ publish()
template<raccoon::TransportMessage T>
| bool libstp::transport_core::SharedTransport::publish |
( |
const std::string & | channel, |
|
|
const T & | message, |
|
|
const raccoon::PublishOptions & | options = {} ) |
|
inline |
◆ publish_raw()
| bool libstp::transport_core::SharedTransport::publish_raw |
( |
const std::string & | channel, |
|
|
const void * | data, |
|
|
int | data_len, |
|
|
bool | reliable, |
|
|
bool | retained, |
|
|
int | retry_interval_ms, |
|
|
std::uint32_t | max_retries ) |
◆ shutdown()
| void libstp::transport_core::SharedTransport::shutdown |
( |
| ) |
|
◆ subscribe()
template<raccoon::TransportMessage T>
| std::uint64_t libstp::transport_core::SharedTransport::subscribe |
( |
const std::string & | channel, |
|
|
std::function< void(const T &)> | handler, |
|
|
const raccoon::SubscribeOptions & | options = {} ) |
|
inline |
◆ subscribe_raw()
| std::uint64_t libstp::transport_core::SharedTransport::subscribe_raw |
( |
const std::string & | channel, |
|
|
RawHandler | handler, |
|
|
bool | reliable, |
|
|
bool | request_retained ) |
◆ unsubscribe()
| void libstp::transport_core::SharedTransport::unsubscribe |
( |
std::uint64_t | subscription_id | ) |
|
The documentation for this class was generated from the following file:
- /home/runner/work/raccoon-lib/raccoon-lib/modules/libstp-transport-core/include/transport_core/shared_transport.hpp