[#MappingResult-2constructor] = xref:MappingResult.adoc[MappingResult]::MappingResult :relfileprefix: ../ :mrdocs: Construct a successful mapping result. == Synopsis Declared in `<common/pcp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- MappingResult( uint8_t version, xref:CService.adoc[CService] const& internal_in, xref:CService.adoc[CService] const& external_in, uint32_t lifetime_in); ---- == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#