X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdns.h;h=038323a4362b6b3e557cb3068614f16058915e71;hb=5e9a6b9186a8cbaaf65ae7d9cd9c0c033c91b497;hp=3295e29e370081a8b794cb7399da809395f41323;hpb=715984299881265e3659c412d68139255d8c64e7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dns.h b/include/dns.h index 3295e29e3..038323a43 100644 --- a/include/dns.h +++ b/include/dns.h @@ -2,14 +2,11 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits * - * Written by Craig Edwards, Craig McLure, and others. * This program is free but copyrighted software; see - * the file COPYING for details. + * the file COPYING for details. * * --------------------------------------------------- */ @@ -89,16 +86,6 @@ class DNSHeader; */ class ResourceRecord; -/** - * A set of requests keyed by request id - */ -typedef std::map requestlist; - -/** - * An iterator into a set of requests - */ -typedef requestlist::iterator requestlist_iter; - /** * Query and resource record types */ @@ -257,11 +244,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 */ @@ -290,6 +272,10 @@ class DNS : public EventHandler * Currently active Resolver classes */ 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.