14 #include <boost/asio/io_context.hpp> 29 explicit Server(
const std::string &address, uint16_t port)
33 const std::string &address, uint16_t port,
34 const std::string &external_address, uint16_t external_port)
void AsyncRun(size_t worker_threads)
carla::streaming::detail::token_type GetToken(carla::streaming::detail::stream_id_type sensor_id)
carla::streaming::detail::token_type GetToken(carla::streaming::detail::stream_id_type 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)
auto GetLocalEndpoint() const
Server(const std::string &address, uint16_t port, const std::string &external_address, uint16_t external_port)
Serializes a stream endpoint.
Server(const std::string &address, uint16_t port)
void Run()
Run tasks in this thread.
A thread pool based on Boost.Asio's io context.
void SetTimeout(time_duration timeout)
void Stop()
Stop the ThreadPool and join all its threads.
void SetSynchronousMode(bool is_synchro)
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)
underlying_server::endpoint GetLocalEndpoint() const
void SetSynchronousMode(bool is_synchro)
void CloseStream(carla::streaming::detail::stream_id_type id)