14#include <boost/asio/io_context.hpp>
32 explicit Server(
const std::string &address, uint16_t port)
36 const std::string &address, uint16_t port,
37 const std::string &external_address, uint16_t external_port)
void AsyncRun(size_t worker_threads)
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
静态断言,用于确保token_data结构体的大小与Token::data的大小相同。
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.
uint32_t stream_id_type
流ID的类型定义。
static auto make_endpoint(boost::asio::ip::basic_endpoint< Protocol > ep)