MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Bind

Method Bind

src/net.cpp:2234–2245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2232
2233
2234bool CConnman::Bind(const CService &addr, unsigned int flags) {
2235 if (!(flags & BF_EXPLICIT) && IsLimited(addr))
2236 return false;
2237 std::string strError;
2238 if (!BindListenPort(addr, strError, (flags & BF_WHITELIST) != 0)) {
2239 if ((flags & BF_REPORT_ERROR) && clientInterface) {
2240 clientInterface->ThreadSafeMessageBox(strError, "", CClientUIInterface::MSG_ERROR);
2241 }
2242 return false;
2243 }
2244 return true;
2245}
2246
2247bool CConnman::InitBinds(const std::vector<CService>& binds, const std::vector<CService>& whiteBinds) {
2248 bool fBound = false;

Callers

nothing calls this directly

Calls 1

IsLimitedFunction · 0.85

Tested by

no test coverage detected