Maps the node's TCP listen port through the home router via UPnP and/or NAT-PMP.
More...
#include <port_mapping_service.h>
Maps the node's TCP listen port through the home router via UPnP and/or NAT-PMP.
Owns its backends' worker threads; reaches the node only for its listen port (it neither sends nor receives peer traffic).
Definition at line 37 of file port_mapping_service.h.
◆ PortMappingService()
◆ ~PortMappingService()
| librats::PortMappingService::~PortMappingService |
( |
| ) |
|
|
override |
◆ attach()
| void librats::PortMappingService::attach |
( |
NodeContext & |
ctx | ) |
|
|
overridevirtual |
◆ mapped_public_address()
| std::optional< std::pair< std::string, uint16_t > > librats::PortMappingService::mapped_public_address |
( |
| ) |
const |
The public endpoint peers should reach us on, once a backend reports a usable (genuinely public) external IP + TCP port.
nullopt until then.
◆ on_result()
Observe mapping results (established / refreshed / failed).
Optional; invoked from a backend worker thread. Register before start().
Definition at line 48 of file port_mapping_service.h.
◆ start()
| void librats::PortMappingService::start |
( |
| ) |
|
|
overridevirtual |
◆ stop()
| void librats::PortMappingService::stop |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file: