| 473 | |
| 474 | template<typename... Args> |
| 475 | static void LogConnectFailure(bool manual_connection, const char* fmt, const Args&... args) { |
| 476 | std::string error_message = tfm::format(fmt, args...); |
| 477 | if (manual_connection) { |
| 478 | LogPrintf("%s\n", error_message); |
| 479 | } else { |
| 480 | LogPrint(BCLog::NET, "%s\n", error_message); |
| 481 | } |
| 482 | } |
| 483 | |
| 484 | bool ConnectSocketDirectly(const CService &addrConnect, const SOCKET& hSocket, int nTimeout, bool manual_connection) |
| 485 | { |
no test coverage detected