Files
ternfs-XTXMarkets/cpp/core/Connect.hpp
2023-07-27 15:51:15 +00:00

13 lines
263 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,
std::string& errString
);