working commit

This commit is contained in:
Олег Бородин
2026-05-18 12:58:08 +02:00
parent 8758efeae8
commit e52e90c222
3 changed files with 4 additions and 27 deletions
-13
View File
@@ -11,19 +11,6 @@ extern "C" {
#include <resolver.hpp>
Address::Address(std::string iaddress, int ifamily) {
address = iaddress;
family = ifamily;
}
int Address::GetFamily() {
return family;
}
std::string Address::GetAddress() {
return address;
}
std::expected<Address, std::string> Resolver::Resolve(std::string hostname) {
struct sockaddr_in sa;
if (inet_pton(AF_INET, hostname.data(), &(sa.sin_addr)) == 1) {