MappingResult

Successful response to a port mapping.

Synopsis

Declared in <common/pcp.h>

struct MappingResult;

Member Functions

NameDescription
MappingResult [constructor]Construct a successful mapping result.
ToString Format mapping as string for logging.

Data Members

NameDescription
external External host:port.
lifetime Granted lifetime of binding (seconds).
version Protocol version, one of NATPMP_VERSION or PCP_VERSION.

Non-Member Functions

NameDescription
NATPMPRequestPortMapTry to open a port using RFC 6886 NAT-PMP. IPv4 only.
PCPRequestPortMapTry to open a port using RFC 6887 Port Control Protocol (PCP). Handles IPv4 and IPv6.