A client able to subscribe to multiple streams. More...
#include <Client.h>
Public Member Functions | |
void | AsyncRun (size_t worker_threads) |
Client ()=default | |
Client (const std::string &fallback_address) | |
void | Run () |
template<typename Functor > | |
void | Subscribe (const Token &token, Functor &&callback) |
void | UnSubscribe (const Token &token) |
~Client () | |
Private Types | |
using | underlying_client = low_level::Client< detail::tcp::Client > |
Private Attributes | |
underlying_client | _client |
ThreadPool | _service |
A client able to subscribe to multiple streams.
Definition at line 23 of file streaming/Client.h.
Definition at line 24 of file streaming/Client.h.
|
default |
|
inlineexplicit |
Definition at line 29 of file streaming/Client.h.
|
inline |
Definition at line 32 of file streaming/Client.h.
References _service, and carla::ThreadPool::Stop().
|
inline |
Definition at line 51 of file streaming/Client.h.
References _service, and carla::ThreadPool::AsyncRun().
Referenced by carla::client::detail::Client::Pimpl::Pimpl(), and TEST().
|
inline |
Definition at line 47 of file streaming/Client.h.
References _service, and carla::ThreadPool::Run().
|
inline |
Definition at line 39 of file streaming/Client.h.
References _client, _service, carla::ThreadPool::io_context(), and carla::streaming::low_level::Client< T >::Subscribe().
Referenced by TEST().
|
inline |
Definition at line 43 of file streaming/Client.h.
References _client, and carla::streaming::low_level::Client< T >::UnSubscribe().
|
private |
Definition at line 61 of file streaming/Client.h.
Referenced by Subscribe(), and UnSubscribe().
|
private |
Definition at line 59 of file streaming/Client.h.
Referenced by AsyncRun(), Run(), Subscribe(), and ~Client().