urbackup_backend/LookupService.h
2019-06-23 23:07:29 +02:00

18 lines
343 B
C++

#pragma once
#include "socket_header.h"
#include <string>
struct SLookupBlockingResult
{
bool is_ipv6;
union
{
unsigned int addr_v4;
char addr_v6[16];
};
unsigned int zone;
};
bool LookupBlocking(std::string pServer, SLookupBlockingResult& dest);
bool LookupHostname(const std::string& pIp, std::string& hostname);