CARLA
 
载入中...
搜索中...
未找到
Public 类型 | Public 属性 | 所有成员列表
carla::streaming::detail::token_data结构体 参考

#include <Token.h>

+ carla::streaming::detail::token_data 的协作图:

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.h37 行定义.

成员枚举类型说明

◆ address

enum class carla::streaming::detail::token_data::address : uint8_t
strong

地址类型枚举,指示IP地址的版本。

枚举值
not_set 

未设置地址

ip_v4 

IPv4地址

ip_v6 

IPv6地址

在文件 detail/Token.h57 行定义.

◆ protocol

协议类型枚举,指示使用的传输协议。

枚举值
not_set 

未设置协议

tcp 

TCP协议

udp 

UDP协议

在文件 detail/Token.h49 行定义.

类成员变量说明

◆ [union]

联合体,用于存储IPv4或IPv6地址。

根据address_type的值,此联合体可以存储IPv4或IPv6地址的字节表示。

◆ address_type

enum carla::streaming::detail::token_data::address carla::streaming::detail::token_data::address_type = address::not_set

◆ port

uint16_t carla::streaming::detail::token_data::port = 0u

◆ protocol

◆ stream_id

stream_id_type carla::streaming::detail::token_data::stream_id = 0u

◆ v4

boost::asio::ip::address_v4::bytes_type carla::streaming::detail::token_data::v4

IPv4地址的字节表示

在文件 detail/Token.h68 行定义.

◆ v6

boost::asio::ip::address_v6::bytes_type carla::streaming::detail::token_data::v6

IPv6地址的字节表示

在文件 detail/Token.h69 行定义.


该结构体的文档由以下文件生成: