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

Function SetNameProxy

src/netbase.cpp:431–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431bool SetNameProxy(CService addrProxy, int nSocksVersion) {
432 if (nSocksVersion != 0 && nSocksVersion != 5)
433 return false;
434 if (nSocksVersion != 0 && !addrProxy.IsValid())
435 return false;
436 LOCK(cs_proxyInfos);
437 nameproxyInfo = make_pair(addrProxy, nSocksVersion);
438 return true;
439}
440
441bool GetNameProxy(ProxyType& nameproxyInfoOut) {
442 LOCK(cs_proxyInfos);

Callers 1

AppInitFunction · 0.85

Calls 1

IsValidMethod · 0.45

Tested by

no test coverage detected