VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::Protocol Struct Referencefinal

Parsed URL components used to select and configure a transport Conf. More...

#include <url.h>

Collaboration diagram for vlink::Protocol:

Public Attributes

std::string str
 Canonical URL string (post-remap).
TransportType transport
 Resolved transport backend.
std::string host
 Hostname or IP address component.
std::string path
 Topic path component.
std::map< std::string, std::string > dictionary
 Parsed query key-value pairs.
std::string fragment
 Fragment identifier (after #).

Friends

struct Url

Detailed Description

Parsed URL components used to select and configure a transport Conf.

Produced by Protocol(const std::string& address) which runs the URL through UrlParser, applies any VLINK_URL_REMAP remapping, and resolves the TransportType from the transport string. Only Url may construct a Protocol (private constructor, friend Url).

Note
The str field always holds the canonical URL string after any remap has been applied, not the raw input.

◆ Url

friend struct Url
friend

Member Data Documentation

◆ dictionary

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

Parsed query key-value pairs.

◆ fragment

std::string vlink::Protocol::fragment

Fragment identifier (after #).

◆ host

std::string vlink::Protocol::host

Hostname or IP address component.

◆ path

std::string vlink::Protocol::path

Topic path component.

◆ str

std::string vlink::Protocol::str

Canonical URL string (post-remap).

◆ transport

TransportType vlink::Protocol::transport

Resolved transport backend.


The documentation for this struct was generated from the following file:
  • include/vlink/impl/url.h