| 2232 | |
| 2233 | |
| 2234 | bool 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 | |
| 2247 | bool CConnman::InitBinds(const std::vector<CService>& binds, const std::vector<CService>& whiteBinds) { |
| 2248 | bool fBound = false; |
nothing calls this directly
no test coverage detected