MCPcopy Create free account
hub / github.com/arvidn/libtorrent / stop_proxy

Function stop_proxy

test/setup_transfer.cpp:630–640  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628static std::map<int, proxy_t> running_proxies;
629
630void stop_proxy(int port)
631{
632 auto const it = running_proxies.find(port);
633
634 if (it == running_proxies.end()) return;
635
636 std::printf("stopping proxy on port %d\n", port);
637
638 stop_process(it->second.pid);
639 running_proxies.erase(it);
640}
641
642void stop_all_proxies()
643{

Callers 3

run_suiteFunction · 0.85
test_transferFunction · 0.85
test_transferFunction · 0.85

Calls 4

stop_processFunction · 0.85
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by 3

run_suiteFunction · 0.68
test_transferFunction · 0.68
test_transferFunction · 0.68