Successful response to a port mapping.
Declared in <common/pcp.h>
struct MappingResult;
| Name | Description |
|---|---|
MappingResult [constructor] | Construct a successful mapping result. |
ToString | Format mapping as string for logging. |
| Name | Description |
|---|---|
external | External host:port. |
lifetime | Granted lifetime of binding (seconds). |
version | Protocol version, one of NATPMP_VERSION or PCP_VERSION. |
| 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. |