Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
MappingResult Struct Reference

Successful response to a port mapping. More...

#include <pcp.h>

Collaboration diagram for MappingResult:
[legend]

Public Member Functions

 MappingResult (uint8_t version, const CService &internal_in, const CService &external_in, uint32_t lifetime_in)
std::string ToString () const
 Format mapping as string for logging.

Public Attributes

uint8_t version
 Protocol version, one of NATPMP_VERSION or PCP_VERSION.
CService internal
 Internal host:port.
CService external
 External host:port.
uint32_t lifetime
 Granted lifetime of binding (seconds).

Detailed Description

Successful response to a port mapping.

Definition at line 31 of file pcp.h.

Constructor & Destructor Documentation

◆ MappingResult()

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

Definition at line 32 of file pcp.h.

Member Function Documentation

◆ ToString()

std::string MappingResult::ToString ( ) const

Format mapping as string for logging.

Definition at line 544 of file pcp.cpp.

Member Data Documentation

◆ external

CService MappingResult::external

External host:port.

Definition at line 39 of file pcp.h.

◆ internal

CService MappingResult::internal

Internal host:port.

Definition at line 37 of file pcp.h.

◆ lifetime

uint32_t MappingResult::lifetime

Granted lifetime of binding (seconds).

Definition at line 41 of file pcp.h.

◆ version

uint8_t MappingResult::version

Protocol version, one of NATPMP_VERSION or PCP_VERSION.

Definition at line 35 of file pcp.h.


The documentation for this struct was generated from the following files: