InspIRCd  2.0
Public Member Functions | Public Attributes | List of all members
DNSResult Class Reference

#include <dns.h>

Public Member Functions

 DNSResult (int i, const std::string &res, unsigned long timetolive, const std::string &orig, QueryType qt=DNS_QUERY_NONE)
 

Public Attributes

int id
 
std::string result
 
unsigned long ttl
 
std::string original
 
QueryType type
 

Detailed Description

Result status, used internally

Constructor & Destructor Documentation

◆ DNSResult()

DNSResult::DNSResult ( int  i,
const std::string &  res,
unsigned long  timetolive,
const std::string &  orig,
QueryType  qt = DNS_QUERY_NONE 
)
inline

Build a DNS result.

Parameters
iThe request ID
resThe request result, a hostname or IP
timetoliveThe request time-to-live
origThe original request, a hostname or IP
qtThe type of DNS query this result represents.

Member Data Documentation

◆ id

int DNSResult::id

Result ID

◆ original

std::string DNSResult::original

The original request, a hostname or IP address

◆ result

std::string DNSResult::result

Result body, a hostname or IP address

◆ ttl

unsigned long DNSResult::ttl

Time-to-live value of the result

◆ type

QueryType DNSResult::type

The type of the request


The documentation for this class was generated from the following file: