summaryrefslogtreecommitdiff
path: root/include/dns.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 19:25:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 19:25:31 +0000
commit48262da087538c38b91bf3a1a51ffaa5e61e502f (patch)
tree2f2fe843c29362f47bf2b4f1d1ac34564176fbf3 /include/dns.h
parent9bc04a302572eb311a147a32ff1d36f1d91f2d7a (diff)
Change some resolver stuff.
OM, THIS STILL WONT COMPILE! Error on the same line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4821 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dns.h')
-rw-r--r--include/dns.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/dns.h b/include/dns.h
index f66d2d3c4..ebe628bb9 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -40,6 +40,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "socket.h"
#include "base.h"
+class InspIRCd;
+
/**
* Result status, used internally
*/
@@ -133,6 +135,10 @@ class Resolver : public Extensible
{
protected:
/**
+ * Pointer to creator
+ */
+ InspIRCd* ServerInstance;
+ /**
* The input data, either a host or an IP address
*/
std::string input;
@@ -180,7 +186,7 @@ class Resolver : public Extensible
* the network being down. This will also be thrown if an invalid IP address is
* passed when resolving a 'PTR' record.
*/
- Resolver(const std::string &source, QueryType qt);
+ Resolver(InspIRCd* Instance, const std::string &source, QueryType qt);
/**
* The default destructor does nothing.
*/
@@ -217,6 +223,8 @@ class DNS : public Extensible
{
private:
+ InspIRCd* ServerInstance;
+
/**
* The maximum value of a dns request id,
* 16 bits wide, 0xFFFF.
@@ -340,7 +348,7 @@ class DNS : public Extensible
* The constructor initialises the dns socket,
* and clears the request lists.
*/
- DNS();
+ DNS(InspIRCd* Instance);
/**
* Destructor