VLink  2.0.0
A high-performance communication middleware
vlink::Protocol结构体 参考final

Plain-data record describing the parsed components of a VLink URL. 更多...

#include <url.h>

vlink::Protocol 的协作图:

Public 属性

std::string str
 URL string after remap, if any. 更多...
 
TransportType transport
 Resolved transport backend identifier. 更多...
 
std::string host
 Hostname or IP component, if any. 更多...
 
std::string path
 Topic path component. 更多...
 
std::map< std::string, std::string > dictionary
 Query parameters parsed into a key/value dictionary. 更多...
 
std::string fragment
 Fragment identifier (after #). 更多...
 

友元

struct Url
 

详细描述

Plain-data record describing the parsed components of a VLink URL.

Built by Protocol(const std::string& address), which feeds the URL through UrlParser, applies any VLINK_URL_REMAP rewriting and resolves the TransportType from the URI scheme. Only Url may construct a Protocol (the constructor is private and Url is the sole friend).

注解
The str field is the URL string after remap, not a reconstruction from the other fields.

友元及相关函数文档

◆ Url

friend struct Url
friend

类成员变量说明

◆ dictionary

std::map<std::string, std::string> vlink::Protocol::dictionary

Query parameters parsed into a key/value dictionary.

◆ fragment

std::string vlink::Protocol::fragment

Fragment identifier (after #).

◆ host

std::string vlink::Protocol::host

Hostname or IP component, if any.

◆ path

std::string vlink::Protocol::path

Topic path component.

◆ str

std::string vlink::Protocol::str

URL string after remap, if any.

◆ transport

TransportType vlink::Protocol::transport

Resolved transport backend identifier.


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