diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-01 23:59:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-01 23:59:40 +0000 |
commit | d56e60139a8c8f9fad434917ea236e8d2b1ea5ae (patch) | |
tree | bc908a0db845e41537067a4b7e43753f67894404 /include | |
parent | 0ae2cb132ba4a631edbc232f483f72724856f5fb (diff) |
Multithreaded DNS -- not tested!!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2088 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/dns.h | 1 | ||||
-rw-r--r-- | include/inspircd.h | 1 | ||||
-rw-r--r-- | include/users.h | 7 |
3 files changed, 7 insertions, 2 deletions
diff --git a/include/dns.h b/include/dns.h index d0cb97804..6fcabee47 100644 --- a/include/dns.h +++ b/include/dns.h @@ -85,6 +85,7 @@ public: * called DNS::ReverseLookup() or DNS::ForwardLookup. */ std::string GetResult(); + std::string GetResultIP(); /** This method returns the file handle used by the dns query socket or zero if the * query is invalid for some reason, e.g. the dns server not responding. */ diff --git a/include/inspircd.h b/include/inspircd.h index 05a76f48e..ec5f7b26c 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -124,3 +124,4 @@ const char* FindServerNamePtr(std::string servername); std::string GetVersionString(); +void* dns_task(void* arg); diff --git a/include/users.h b/include/users.h index 2329fda01..388977359 100644 --- a/include/users.h +++ b/include/users.h @@ -19,6 +19,7 @@ #include "inspstring.h" #include "connection.h" #include <string> +#include <pthread.h> #ifndef __USERS_H__ #define __USERS_H__ @@ -218,8 +219,6 @@ class userrec : public connection userrec(); - virtual ~userrec() { } - /** Returns the full displayed host of the user * This member function returns the hostname of the user as seen by other users * on the server, in nick!ident&at;host form. @@ -318,6 +317,10 @@ class userrec : public connection /** Shuts down and closes the user's socket */ void CloseSocket(); + + virtual ~userrec(); + + pthread_t dnsthread; }; /** A lightweight userrec used by WHOWAS |