![]() |
D++ (DPP)
C++ Discord API Bot Library
|
Represents a cached DNS result. Used by the ssl_connection class to store cached copies of dns lookups. More...
#include <dns.h>
Public Member Functions | |
const address_t | get_connecting_address (uint16_t port) const |
Get the address_t that corresponds to this cache entry for use when connecting with ::connect() More... | |
socket | make_connecting_socket () const |
Allocate a socket file descriptor for the given dns address. More... | |
int | size () const |
Get address length. More... | |
Public Attributes | |
addrinfo | addr |
Resolved address metadata. More... | |
time_t | expire_timestamp |
Time at which this cache entry is invalidated. More... | |
std::string | resolved_addr |
Resolved address as string. The metadata is needed to know what type of address it is. Do not do silly stuff like just looking to see if '.' is in it! More... | |
Represents a cached DNS result. Used by the ssl_connection class to store cached copies of dns lookups.
const address_t dpp::dns_cache_entry::get_connecting_address | ( | uint16_t | port | ) | const |
socket dpp::dns_cache_entry::make_connecting_socket | ( | ) | const |
Allocate a socket file descriptor for the given dns address.
int dpp::dns_cache_entry::size | ( | ) | const |
Get address length.
addrinfo dpp::dns_cache_entry::addr |
Resolved address metadata.
time_t dpp::dns_cache_entry::expire_timestamp |
Time at which this cache entry is invalidated.
std::string dpp::dns_cache_entry::resolved_addr |
Resolved address as string. The metadata is needed to know what type of address it is. Do not do silly stuff like just looking to see if '.' is in it!