mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
18 lines
343 B
C++
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);
|