cached_resolve_t Struct Reference


Public Member Functions

 HT_ENTRY (cached_resolve_t)

Data Fields

 result
uint8_t state
uint8_t is_reverse
time_t expire
uint32_t ttl
pending_connection_tpending_connections
int minheap_idx

Detailed Description

A DNS request: possibly completed, possibly pending; cached_resolve structs are stored at the OR side in a hash table, and as a linked list from oldest to newest.

Member Function Documentation

cached_resolve_t::HT_ENTRY ( cached_resolve_t   )  [inline]

< IPv6 addr for address.

< IPv4 addr for address.

< Hostname for address (if a reverse lookup)


Field Documentation

Is this a reverse (addr-to-hostname) lookup?

Referenced by _free_cached_resolve(), add_answer_to_cache(), assert_resolve_ok(), dns_resolve_impl(), and purge_expired_resolves().

Remove items from cache after this time.

Referenced by _compare_cached_resolves_by_expiry(), dns_resolve_impl(), purge_expired_resolves(), and set_expiry().

What TTL did the nameserver tell us?

Referenced by add_answer_to_cache(), assert_resolve_ok(), and dns_resolve_impl().

Position of this element in the heap

Referenced by dns_resolve_impl().


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

Generated on Tue May 25 00:31:07 2010 for tor by  doxygen 1.5.6