Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
upnp::owned_mapping_t Struct Reference

A forwarding rule Hermes owns, including its gateway and destination. More...

#include <src/upnp_mapping.h>

Public Member Functions

bool operator== (const owned_mapping_t &other) const
 Compare persistent rule identities, excluding refresh bookkeeping.

Public Attributes

std::string control_url
 Gateway's SOAP endpoint.
std::string service
 Gateway's WAN connection service.
std::string target
 Host or inner router receiving the forwarded traffic.
std::string external_port
 Gateway port.
std::string internal_port
 Destination port.
std::string protocol
 TCP or UDP.
std::string description
 Description used when Hermes created the rule.
bool permanent = false
 Rule requires recovery after an unexpected process exit.
std::size_t generation = 0
 Last successful discovery pass that wanted this exact rule.

Detailed Description

A forwarding rule Hermes owns, including its gateway and destination.

Definition at line 36 of file upnp_mapping.h.

Member Function Documentation

◆ operator==()

bool upnp::owned_mapping_t::operator== ( const owned_mapping_t & other) const
inline

Compare persistent rule identities, excluding refresh bookkeeping.

Parameters
otherRule to compare.
Returns
Whether both records identify the same forwarding rule.

Definition at line 52 of file upnp_mapping.h.

Member Data Documentation

◆ control_url

std::string upnp::owned_mapping_t::control_url

Gateway's SOAP endpoint.

Definition at line 37 of file upnp_mapping.h.

◆ description

std::string upnp::owned_mapping_t::description

Description used when Hermes created the rule.

Definition at line 43 of file upnp_mapping.h.

◆ external_port

std::string upnp::owned_mapping_t::external_port

Gateway port.

Definition at line 40 of file upnp_mapping.h.

◆ generation

std::size_t upnp::owned_mapping_t::generation = 0

Last successful discovery pass that wanted this exact rule.

Definition at line 45 of file upnp_mapping.h.

◆ internal_port

std::string upnp::owned_mapping_t::internal_port

Destination port.

Definition at line 41 of file upnp_mapping.h.

◆ permanent

bool upnp::owned_mapping_t::permanent = false

Rule requires recovery after an unexpected process exit.

Definition at line 44 of file upnp_mapping.h.

◆ protocol

std::string upnp::owned_mapping_t::protocol

TCP or UDP.

Definition at line 42 of file upnp_mapping.h.

◆ service

std::string upnp::owned_mapping_t::service

Gateway's WAN connection service.

Definition at line 38 of file upnp_mapping.h.

◆ target

std::string upnp::owned_mapping_t::target

Host or inner router receiving the forwarded traffic.

Definition at line 39 of file upnp_mapping.h.


The documentation for this struct was generated from the following file: