Files
Олег Бородин eda9b8986b working commit
2026-05-05 11:37:10 +02:00

21 lines
387 B
C++

#include <expected>
#include <string>
class Address {
private:
int family;
std::string address;
public:
Address(const std::string iaddress, const int ifamily);
int GetFamily();
std::string GetAddress();
};
class Resolver {
private:
int family;
public:
std::expected<Address, std::string> Resolve(const std::string hostname);
};