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 46 of file port_mapping_service.h.
◆ PortMappingService()
◆ ~PortMappingService()
| librats::PortMappingService::~PortMappingService |
( |
| ) |
|
|
override |
◆ attach()
| void librats::PortMappingService::attach |
( |
NodeContext & |
ctx | ) |
|
|
overridevirtual |
◆ mapped_public_address()
The public endpoint peers should reach us on over protocol, once a backend reports a usable (genuinely public) external IP + port for it.
nullopt until then. The two protocols are mapped independently and a router may accept one and refuse the other, so ask for the one you intend to dial.
◆ on_result()
Observe mapping results (established / refreshed / failed).
Optional; invoked from a backend worker thread. Register before start().
Definition at line 57 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: