Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
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 ()
 Format mapping as string for logging. More...
 

Public Attributes

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

Detailed Description

Successful response to a port mapping.

Definition at line 30 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 31 of file pcp.h.

Member Function Documentation

◆ ToString()

std::string MappingResult::ToString ( )

Format mapping as string for logging.

Definition at line 515 of file pcp.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ external

CService MappingResult::external

External host:port.

Definition at line 38 of file pcp.h.

◆ internal

CService MappingResult::internal

Internal host:port.

Definition at line 36 of file pcp.h.

◆ lifetime

uint32_t MappingResult::lifetime

Granted lifetime of binding (seconds).

Definition at line 40 of file pcp.h.

◆ version

uint8_t MappingResult::version

Protocol version, one of NATPMP_VERSION or PCP_VERSION.

Definition at line 34 of file pcp.h.


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