14#include <boost/asio/io_context.hpp>
31 explicit Server(
const std::string &address, uint16_t port)
35 const std::string &address, uint16_t port,
36 const std::string &external_address, uint16_t external_port)
A thread pool based on Boost.Asio's io context.
void Stop()
Stop the ThreadPool and join all its threads.
void AsyncRun(size_t worker_threads)
Launch threads to run tasks asynchronously.
void Run()
Run tasks in this thread.
carla::streaming::detail::stream_id_type stream_id
token_type GetToken(stream_id sensor_id)
void SetTimeout(time_duration timeout)
Server(const std::string &address, uint16_t port)
bool IsEnabledForROS(stream_id sensor_id)
void CloseStream(carla::streaming::detail::stream_id_type id)
void EnableForROS(stream_id sensor_id)
low_level::Server< detail::tcp::Server >::protocol_type protocol_type
underlying_server _server
Server(const std::string &address, uint16_t port, const std::string &external_address, uint16_t external_port)
void AsyncRun(size_t worker_threads)
void DisableForROS(stream_id sensor_id)
void SetSynchronousMode(bool is_synchro)
auto GetLocalEndpoint() const
Serializes a stream endpoint.
void CloseStream(carla::streaming::detail::stream_id_type id)
void SetSynchronousMode(bool is_synchro)
void SetTimeout(time_duration timeout)
void DisableForROS(stream_id sensor_id)
typename underlying_server::protocol_type protocol_type
token_type GetToken(stream_id sensor_id)
bool IsEnabledForROS(stream_id sensor_id)
underlying_server::endpoint GetLocalEndpoint() const
void EnableForROS(stream_id sensor_id)
Positive time duration up to milliseconds resolution.
static auto make_endpoint(boost::asio::ip::basic_endpoint< Protocol > ep)
This file contains definitions of common data structures used in traffic manager.