MappingResult::MappingResult

Construct a successful mapping result.

Synopsis

Declared in <common/pcp.h>

MappingResult(
    uint8_t version,
    CService const& internal_in,
    CService const& external_in,
    uint32_t lifetime_in);

Parameters

NameDescription
versionProtocol version, one of NATPMP_VERSION or PCP_VERSION.
internal_inInternal host:port of the mapping.
external_inExternal host:port granted by the server.
lifetime_inGranted lifetime of the binding, in seconds.