summaryrefslogtreecommitdiff
path: root/include/dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dns.h')
-rw-r--r--include/dns.h19
1 files changed, 4 insertions, 15 deletions
diff --git a/include/dns.h b/include/dns.h
index 4087e2476..038323a43 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -87,16 +87,6 @@ class DNSHeader;
class ResourceRecord;
/**
- * A set of requests keyed by request id
- */
-typedef std::map<int,DNSRequest*> requestlist;
-
-/**
- * An iterator into a set of requests
- */
-typedef requestlist::iterator requestlist_iter;
-
-/**
* Query and resource record types
*/
enum QueryType
@@ -255,11 +245,6 @@ class DNS : public EventHandler
static const int MAX_REQUEST_ID = 0xFFFF;
/**
- * Requests that are currently 'in flight'
- */
- requestlist requests;
-
- /**
* Server address being used currently
*/
insp_inaddr myserver;
@@ -288,6 +273,10 @@ class DNS : public EventHandler
*/
Resolver* Classes[MAX_REQUEST_ID];
/**
+ * Requests that are currently 'in flight'
+ */
+ DNSRequest* requests[MAX_REQUEST_ID];
+ /**
* The port number DNS requests are made on,
* and replies have as a source-port number.
*/