| 530 | |
| 531 | template<typename... Args> |
| 532 | static void LogConnectFailure(bool manual_connection, const char* fmt, const Args&... args) { |
| 533 | std::string error_message = tfm::format(fmt, args...); |
| 534 | if (manual_connection) { |
| 535 | LogPrintf("%s\n", error_message); |
| 536 | } else { |
| 537 | LogPrint(BCLog::NET, "%s\n", error_message); |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | bool ConnectSocketDirectly(const CService &addrConnect, const Sock& sock, int nTimeout, bool manual_connection) |
| 542 | { |
no test coverage detected