dpp::dns_cache_entry
dns.h
addrinfo addrinfo dpp::dns_cache_entry::addr addr dpp::dns_cache_entry::addr

Resolved address metadata.

time_t time_t dpp::dns_cache_entry::expire_timestamp expire_timestamp dpp::dns_cache_entry::expire_timestamp

Time at which this cache entry is invalidated.

std::string std::string dpp::dns_cache_entry::resolved_addr resolved_addr 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!

const address_t const address_t dpp::dns_cache_entry::get_connecting_address (uint16_t port) const get_connecting_address dpp::dns_cache_entry::get_connecting_address uint16_t port

Get the address_t that corresponds to this cache entry for use when connecting with ::connect().

port

Port number to connect to

address_t prefilled with the IP and port number

socket socket dpp::dns_cache_entry::make_connecting_socket () const make_connecting_socket dpp::dns_cache_entry::make_connecting_socket

Allocate a socket file descriptor for the given dns address.

File descriptor ready for calling connect(), or INVALID_SOCKET on failure.

int int dpp::dns_cache_entry::size () const size dpp::dns_cache_entry::size

Get address length.

address length

Represents a cached DNS result. Used by the ssl_connection class to store cached copies of dns lookups.

addrinfo
dpp::dns_cache_entry
addr
resolved_addr
expire_timestamp
std::basic_string< Char >
std::string
time_t
- dpp::dns_cache_entry
  addr
- dpp::dns_cache_entry
  expire_timestamp
- dpp::dns_cache_entry
  get_connecting_address
- dpp::dns_cache_entry
  make_connecting_socket
- dpp::dns_cache_entry
  resolved_addr
- dpp::dns_cache_entry
  size