Public Types | Public Member Functions | Data Fields

HttpTransact::_DNSLookupInfo Struct Reference

#include <HttpTransact.h>

Collaboration diagram for HttpTransact::_DNSLookupInfo:
Collaboration graph
[legend]

Public Types

enum  {
  OS_ADDR_TRY_DEFAULT, OS_ADDR_TRY_HOSTDB, OS_ADDR_TRY_CLIENT, OS_ADDR_USE_HOSTDB,
  OS_ADDR_USE_CLIENT
}
 

Origin server address source selection.

More...

Public Member Functions

 _DNSLookupInfo ()

Data Fields

int attempts
enum
HttpTransact::_DNSLookupInfo:: { ... }  
os_addr_style
 Origin server address source selection.
bool lookup_success
char * lookup_name
char srv_hostname [MAXDNAME]
LookingUp_t looking_up
bool srv_lookup_success
short srv_port
HostDBApplicationInfo srv_app
bool lookup_validated

Detailed Description

Definition at line 758 of file HttpTransact.h.


Member Enumeration Documentation

anonymous enum

Origin server address source selection.

If config says to use CTA (client target addr) state is OS_ADDR_TRY_CLIENT, otherwise it remains the default. If the connect fails then we switch to a USE. We go to USE_HOSTDB if (1) the HostDB lookup is successful and (2) some address other than the CTA is available to try. Otherwise we keep retrying on the CTA (USE_CLIENT) up to the max retry value. In essence we try to treat the CTA as if it were another RR value in the HostDB record.

Enumerator:
OS_ADDR_TRY_DEFAULT 

Initial state, use what config says.

OS_ADDR_TRY_HOSTDB 

Try HostDB data.

OS_ADDR_TRY_CLIENT 

Try client target addr.

OS_ADDR_USE_HOSTDB 

Force use of HostDB target address.

OS_ADDR_USE_CLIENT 

Use client target addr, no fallback.

Definition at line 772 of file HttpTransact.h.


Constructor & Destructor Documentation

HttpTransact::_DNSLookupInfo::_DNSLookupInfo (  )  [inline]

Field Documentation

Definition at line 790 of file HttpTransact.h.

Referenced by HttpTransact::is_response_cacheable().

Origin server address source selection.

If config says to use CTA (client target addr) state is OS_ADDR_TRY_CLIENT, otherwise it remains the default. If the connect fails then we switch to a USE. We go to USE_HOSTDB if (1) the HostDB lookup is successful and (2) some address other than the CTA is available to try. Otherwise we keep retrying on the CTA (USE_CLIENT) up to the max retry value. In essence we try to treat the CTA as if it were another RR value in the HostDB record.

Referenced by HttpTransact::handle_response_from_server(), and HttpTransact::OSDNSLookup().

Definition at line 786 of file HttpTransact.h.

Referenced by _DNSLookupInfo().

Definition at line 782 of file HttpTransact.h.

Referenced by _DNSLookupInfo().

Definition at line 784 of file HttpTransact.h.

Referenced by HttpTransact::handle_response_from_server().

Definition at line 785 of file HttpTransact.h.


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