A client able to subscribe to multiple streams. More...
#include <Client.h>
Inheritance diagram for carla::streaming::low_level::Client< T >:
Collaboration diagram for carla::streaming::low_level::Client< T >:Public Types | |
| using | protocol_type = typename underlying_client::protocol_type |
| using | token_type = carla::streaming::detail::token_type |
| using | underlying_client = T |
Public Member Functions | |
| Client (boost::asio::ip::address fallback_address) | |
| Client (const std::string &fallback_address) | |
| Client () | |
| template<typename Functor > | |
| void | Subscribe (boost::asio::io_context &io_context, token_type token, Functor &&callback) |
| void | UnSubscribe (token_type token) |
| ~Client () | |
Private Attributes | |
| std::unordered_map< detail::stream_id_type, std::shared_ptr< underlying_client > > | _clients |
| boost::asio::ip::address | _fallback_address |
A client able to subscribe to multiple streams.
Accepts an external io_context.
Definition at line 27 of file streaming/low_level/Client.h.
| using carla::streaming::low_level::Client< T >::protocol_type = typename underlying_client::protocol_type |
Definition at line 31 of file streaming/low_level/Client.h.
| using carla::streaming::low_level::Client< T >::token_type = carla::streaming::detail::token_type |
Definition at line 32 of file streaming/low_level/Client.h.
| using carla::streaming::low_level::Client< T >::underlying_client = T |
Definition at line 30 of file streaming/low_level/Client.h.
|
inlineexplicit |
Definition at line 34 of file streaming/low_level/Client.h.
|
inlineexplicit |
Definition at line 37 of file streaming/low_level/Client.h.
|
inlineexplicit |
Definition at line 40 of file streaming/low_level/Client.h.
|
inline |
Definition at line 43 of file streaming/low_level/Client.h.
|
inline |
Definition at line 52 of file streaming/low_level/Client.h.
Referenced by carla::streaming::Client::Subscribe(), and TEST().
Here is the caller graph for this function:
|
inline |
Definition at line 68 of file streaming/low_level/Client.h.
Referenced by TEST(), and carla::streaming::Client::UnSubscribe().
Here is the caller graph for this function:
|
private |
|
private |
Definition at line 79 of file streaming/low_level/Client.h.
Referenced by carla::streaming::low_level::Client< detail::tcp::Client >::Subscribe().
1.8.13