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

Name

Description

version

Protocol version, one of NATPMP_VERSION or PCP_VERSION.

internal_in

Internal host:port of the mapping.

external_in

External host:port granted by the server.

lifetime_in

Granted lifetime of the binding, in seconds.

Created with MrDocs