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