This builds on #14147
Currently this is failing a test, still investigating why (seems to generally work).
<!--e57a25ab6845829454e8d69fc972939a-->Note to reviewers: This pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
1268 | @@ -1269,6 +1269,7 @@ void CConnman::NotifyNumConnectionsChanged() 1269 | } 1270 | } 1271 | 1272 | +#ifdef WIN32
IMO you could include this m4 to detect if the system has poll.
1582 | + // 1583 | + // Accept new connections 1584 | + // 1585 | + for (const ListenSocket& hListenSocket : vhListenSocket) 1586 | + { 1587 | + if (hListenSocket.socket != INVALID_SOCKET && recv_set.count(hListenSocket.socket))
2018-09-16 23:09:35 clang-tidy(pr=14221): src/net.cpp:1457:55: warning: implicit conversion 'std::set<unsigned int, std::less<unsigned int>, std::allocator<unsigned int> >::size_type' (aka 'unsigned long') -> bool [readability-implicit-bool-conversion]
Same below. Please fix throughout :-)
1272 | + } 1273 | +} 1274 | + 1275 | +void CConnman::InactivityChecks() 1276 | +{ 1277 | + int64_t micro_time, nTime;
2018-09-16 23:34:30 cppcheck(pr=14221): [src/net.cpp:1220]: (style) The scope of the variable 'micro_time' can be reduced.
2018-09-16 23:34:30 cppcheck(pr=14221): [src/net.cpp:1220]: (style) The scope of the variable 'nTime' can be reduced.