X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fdns.h;h=63d5bb1fb78174a15b840d80a031164184044477;hb=8ed28d1f98d4d4c653201f0c4273e74dd8a122e6;hp=6fcabee479ed0f1472169644faf4464c01d91c78;hpb=d56e60139a8c8f9fad434917ea236e8d2b1ea5ae;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/dns.h b/include/dns.h index 6fcabee47..63d5bb1fb 100644 --- a/include/dns.h +++ b/include/dns.h @@ -37,9 +37,10 @@ class DNS private: in_addr *binip; char* result; + char localbuf[1024]; int t; void dns_init(); - int fd; + int myfd; void dns_init_2(const char* dnsserver); in_addr *dns_aton4(const char * const ipstring); char *dns_ntoa4(const in_addr * const ip); @@ -81,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. */