diff options
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 |