From 2e816169a426511ec7c2a45b7bc7947358310b2d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Dec 2005 12:49:12 +0000 Subject: Attempts to make DNS nicer with new socket engine git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2332 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/dns.h | 3 +++ include/dnsqueue.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/dns.h b/include/dns.h index f1c118909..63d5bb1fb 100644 --- a/include/dns.h +++ b/include/dns.h @@ -82,6 +82,9 @@ public: * to determine the status of the socket. */ bool HasResult(); + /** This method will return true if the lookup's fd matches the one provided + */ + bool HasResult(int fd); /** This method returns the result of your query as a string, depending upon wether you * called DNS::ReverseLookup() or DNS::ForwardLookup. */ diff --git a/include/dnsqueue.h b/include/dnsqueue.h index 8546b0f62..f251dcaa2 100644 --- a/include/dnsqueue.h +++ b/include/dnsqueue.h @@ -2,4 +2,4 @@ #include "users.h" bool lookup_dns(std::string nick); -void dns_poll(); +void dns_poll(int fdcheck); -- cgit v1.2.3