MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / MapPort

Function MapPort

src/net.cpp:864–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

862}
863
864void MapPort(bool fUseUPnP) {
865 static boost::thread* upnp_thread = nullptr;
866
867 if (fUseUPnP) {
868 if (upnp_thread) {
869 upnp_thread->interrupt();
870 upnp_thread->join();
871 delete upnp_thread;
872 }
873 upnp_thread = new boost::thread(boost::bind(&TraceThread<void (*)()>, "upnp", &ThreadMapPort));
874 } else if (upnp_thread) {
875 upnp_thread->interrupt();
876 upnp_thread->join();
877 delete upnp_thread;
878 upnp_thread = nullptr;
879 }
880}
881
882#else
883void MapPort(bool) {

Callers 2

StartNodeFunction · 0.85
StopNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected