MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetProxy

Function SetProxy

src/netbase.cpp:608–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608bool SetProxy(enum Network net, const Proxy &addrProxy) {
609 assert(net >= 0 && net < NET_MAX);
610 if (!addrProxy.IsValid())
611 return false;
612 LOCK(g_proxyinfo_mutex);
613 proxyInfo[net] = addrProxy;
614 return true;
615}
616
617bool GetProxy(enum Network net, Proxy &proxyInfoOut) {
618 assert(net >= 0 && net < NET_MAX);

Callers 2

auth_cbMethod · 0.85
AppInitMainFunction · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected