[#MappingResult-2constructor]
= xref:MappingResult.adoc[MappingResult]::MappingResult
:relfileprefix: ../
:mrdocs:

Construct a successful mapping result&period;

== Synopsis

Declared in `&lt;common&sol;pcp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
MappingResult(
    uint8&lowbar;t version,
    xref:CService.adoc[CService] const& internal&lowbar;in,
    xref:CService.adoc[CService] const& external&lowbar;in,
    uint32&lowbar;t lifetime&lowbar;in);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *version*
| Protocol version, one of NATPMP&lowbar;VERSION or PCP&lowbar;VERSION&period;
| *internal&lowbar;in*
| Internal host&colon;port of the mapping&period;
| *external&lowbar;in*
| External host&colon;port granted by the server&period;
| *lifetime&lowbar;in*
| Granted lifetime of the binding, in seconds&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
