Files
ternfs-XTXMarkets/cpp/core/Connect.hpp
2023-07-11 12:13:22 +00:00

14 lines
283 B
C++

#pragma once
#include "Common.hpp"
#include "Time.hpp"
// For errors that we probably shouldn't retry, an exception is thrown. Otherwise
// -1 fd and error string.
int connectToHost(
const std::string& host,
uint16_t port,
int synRetries,
std::string& errString
);