mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
23 lines
524 B
C++
23 lines
524 B
C++
#pragma once
|
|
#include "socket_header.h"
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct SLookupBlockingResult
|
|
{
|
|
bool is_ipv6;
|
|
union
|
|
{
|
|
unsigned int addr_v4;
|
|
char addr_v6[16];
|
|
};
|
|
unsigned int zone;
|
|
};
|
|
|
|
std::vector<SLookupBlockingResult> LookupBlocking(std::string pServer);
|
|
bool LookupHostname(const std::string& pIp, std::string& hostname);
|
|
|
|
#ifdef ENABLE_C_ARES
|
|
bool LookupInit();
|
|
std::vector<SLookupBlockingResult> LookupWithTimeout(std::string pServer, int timeoutms, int stop_timeoutms);
|
|
#endif |