Successful response to a port mapping.

Synopsis

Declared in <common/pcp.h>

struct MappingResult;

Member Functions

Name

Description

MappingResult [constructor]

Construct a successful mapping result.

ToString

Format mapping as string for logging.

Data Members

Name

Description

external

External host:port.

lifetime

Granted lifetime of binding (seconds).

version

Protocol version, one of NATPMP_VERSION or PCP_VERSION.

Non-Member Functions

Name

Description

NATPMPRequestPortMap

Try to open a port using RFC 6886 NAT‐PMP. IPv4 only.

PCPRequestPortMap

Try to open a port using RFC 6887 Port Control Protocol (PCP). Handles IPv4 and IPv6.

Created with MrDocs