#include <Token.h>
Public 类型 | |
enum class | address : uint8_t { not_set , ip_v4 , ip_v6 } |
地址类型枚举,指示IP地址的版本。 更多... | |
enum class | protocol : uint8_t { not_set , tcp , udp } |
协议类型枚举,指示使用的传输协议。 更多... | |
Public 属性 | ||
union { | ||
boost::asio::ip::address_v4::bytes_type v4 | ||
IPv4地址的字节表示 更多... | ||
boost::asio::ip::address_v6::bytes_type v6 | ||
IPv6地址的字节表示 更多... | ||
} | address | |
联合体,用于存储IPv4或IPv6地址。 | ||
enum carla::streaming::detail::token_data::address | address_type = address::not_set | |
uint16_t | port = 0u | |
端口号,用于网络通信。 | ||
enum carla::streaming::detail::token_data::protocol | protocol = protocol::not_set | |
stream_id_type | stream_id = 0u | |
流ID,用于唯一标识一个流。 | ||
在文件 detail/Token.h 第 37 行定义.
|
strong |
|
strong |
union { ... } carla::streaming::detail::token_data::address |
联合体,用于存储IPv4或IPv6地址。
根据address_type的值,此联合体可以存储IPv4或IPv6地址的字节表示。
enum carla::streaming::detail::token_data::address carla::streaming::detail::token_data::address_type = address::not_set |
被这些函数引用 carla::streaming::detail::token_type::address_is_v4(), carla::streaming::detail::token_type::address_is_v6(), carla::streaming::detail::token_type::get_address(), carla::streaming::detail::token_type::has_address(), carla::streaming::detail::token_type::is_valid() , 以及 carla::streaming::detail::token_type::set_address().
uint16_t carla::streaming::detail::token_data::port = 0u |
enum carla::streaming::detail::token_data::protocol carla::streaming::detail::token_data::protocol = protocol::not_set |
stream_id_type carla::streaming::detail::token_data::stream_id = 0u |
流ID,用于唯一标识一个流。
在文件 detail/Token.h 第 41 行定义.
被这些函数引用 carla::streaming::detail::token_type::get_stream_id(), carla::streaming::detail::Dispatcher::MakeStream(), carla::streaming::detail::token_type::set_stream_id(), carla::streaming::detail::token_type::token_type() , 以及 carla::streaming::detail::token_type::token_type().
boost::asio::ip::address_v4::bytes_type carla::streaming::detail::token_data::v4 |
IPv4地址的字节表示
在文件 detail/Token.h 第 68 行定义.
boost::asio::ip::address_v6::bytes_type carla::streaming::detail::token_data::v6 |
IPv6地址的字节表示
在文件 detail/Token.h 第 69 行定义.