Public Member Functions | Data Fields

DNSEntry Struct Reference

One DNSEntry is allocated per outstanding request. More...

#include <P_DNSProcessor.h>

Inherits Continuation.

Collaboration diagram for DNSEntry:
Collaboration graph
[legend]

Public Member Functions

 LINK (DNSEntry, dup_link)
 Que (DNSEntry, dup_link) dups
int mainEvent (int event, Event *e)
 Handle timeout events.
int delayEvent (int event, Event *e)
int post (DNSHandler *h, HostEnt *ent)
int postEvent (int event, Event *e)
void init (const char *x, int len, int qtype_arg, Continuation *acont, DNSProcessor::Options const &opt)
 DNSEntry ()

Data Fields

int id [MAX_DNS_RETRIES]
int qtype
 Type of query to send.
HostResStyle host_res_style
 Preferred IP address family.
int retries
int which_ns
ink_hrtime submit_time
ink_hrtime send_time
char qname [MAXDNAME]
int qname_len
int orig_qname_len
char ** domains
EThreadsubmit_thread
Action action
Eventtimeout
Ptr< HostEntresult_ent
DNSHandlerdnsH
bool written_flag
bool once_written_flag
bool last

Detailed Description

One DNSEntry is allocated per outstanding request.

This continuation handles TIMEOUT events for the request as well as storing all information about the request and its status.

Definition at line 148 of file P_DNSProcessor.h.


Constructor & Destructor Documentation

DNSEntry::DNSEntry (  )  [inline]

Definition at line 178 of file P_DNSProcessor.h.

References qname.


Member Function Documentation

int DNSEntry::delayEvent ( int  event,
Event e 
)
void DNSEntry::init ( const char *  x,
int  len,
int  qtype_arg,
Continuation acont,
DNSProcessor::Options const &  opt 
)
DNSEntry::LINK ( DNSEntry  ,
dup_link   
)
int DNSEntry::mainEvent ( int  event,
Event e 
)
int DNSEntry::post ( DNSHandler h,
HostEnt ent 
)
int DNSEntry::postEvent ( int  event,
Event e 
)
DNSEntry::Que ( DNSEntry  ,
dup_link   
)

Field Documentation

Definition at line 162 of file P_DNSProcessor.h.

Referenced by dns_result(), DNSProcessor::getby(), init(), post(), and postEvent().

Definition at line 165 of file P_DNSProcessor.h.

Referenced by init(), and mainEvent().

Definition at line 160 of file P_DNSProcessor.h.

Referenced by dns_result(), and mainEvent().

Preferred IP address family.

Definition at line 152 of file P_DNSProcessor.h.

Referenced by init().

int DNSEntry::id[MAX_DNS_RETRIES]

Definition at line 150 of file P_DNSProcessor.h.

Referenced by dns_result(), and write_dns_event().

Definition at line 168 of file P_DNSProcessor.h.

Referenced by dns_result().

Definition at line 167 of file P_DNSProcessor.h.

Referenced by write_dns_event().

Definition at line 159 of file P_DNSProcessor.h.

Referenced by dns_result(), init(), and mainEvent().

char DNSEntry::qname[MAXDNAME]

Definition at line 158 of file P_DNSProcessor.h.

Referenced by dns_process(), dns_result(), init(), and mainEvent().

Type of query to send.

Definition at line 151 of file P_DNSProcessor.h.

Referenced by dns_process(), dns_result(), init(), mainEvent(), and write_dns_event().

Definition at line 164 of file P_DNSProcessor.h.

Referenced by dns_result(), mainEvent(), post(), and postEvent().

Definition at line 153 of file P_DNSProcessor.h.

Referenced by dns_result(), DNSProcessor::getby(), and write_dns_event().

Definition at line 156 of file P_DNSProcessor.h.

Referenced by dns_process(), and write_dns_event().

Definition at line 161 of file P_DNSProcessor.h.

Referenced by dns_result(), init(), and post().

Definition at line 155 of file P_DNSProcessor.h.

Referenced by dns_result(), and init().

Definition at line 163 of file P_DNSProcessor.h.

Referenced by dns_result(), mainEvent(), post(), and write_dns_event().

Definition at line 154 of file P_DNSProcessor.h.

Referenced by write_dns_event().

Definition at line 166 of file P_DNSProcessor.h.

Referenced by dns_process(), mainEvent(), write_dns(), and write_dns_event().


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