MCPcopy Create free account
hub / github.com/LUX-Core/lux / Bind

Function Bind

src/init.cpp:344–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344bool static Bind(const CService& addr, unsigned int flags)
345{
346 if (!(flags & BF_EXPLICIT) && IsLimited(addr))
347 return false;
348 std::string strError;
349 if (!BindListenPort(addr, strError, (flags & BF_WHITELIST) != 0)) {
350 if (flags & BF_REPORT_ERROR)
351 return InitError(strError);
352 return false;
353 }
354 return true;
355}
356
357void OnRPCStopped()
358{

Callers 2

AppInit2Function · 0.85
BindMethod · 0.85

Calls 3

IsLimitedFunction · 0.85
BindListenPortFunction · 0.85
InitErrorFunction · 0.85

Tested by

no test coverage detected