diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-12 16:56:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-12 16:56:02 +0000 |
commit | 3a7fa1660c3d78f1f80f3502a8dae77642d3c3f9 (patch) | |
tree | 7b083b597727330920a5c70ca92a8c4a25982708 /include/dns.h | |
parent | 1135a57ace24193f26ed3e679ca0945d97398988 (diff) |
Const refs (this is about the last of them in the core api)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3694 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dns.h')
-rw-r--r-- | include/dns.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/dns.h b/include/dns.h index 91e655775..cdc1fd024 100644 --- a/include/dns.h +++ b/include/dns.h @@ -65,7 +65,7 @@ public: /** This constructor accepts a dns server address. The address must be in dotted * decimal form, e.g. 1.2.3.4. */ - DNS(std::string dnsserver); + DNS(const std::string &dnsserver); /** The destructor frees all used structures. */ ~DNS(); @@ -73,14 +73,14 @@ public: * format, e.g. 1.2.3.4, and returns true if the lookup was successfully * initiated. */ - bool ReverseLookup(std::string ip); + bool ReverseLookup(const std::string &ip); /** This method will start the forward lookup of a hostname, e.g. www.inspircd.org, * and returns true if the lookup was successfully initiated. */ - bool ForwardLookup(std::string host); + bool ForwardLookup(const std::string &host); /** Used by modules to perform a dns lookup but have the socket engine poll a module, instead of the dns object directly. */ - bool ForwardLookupWithFD(std::string host, int &fd); + bool ForwardLookupWithFD(const std::string &host, int &fd); /** This method will return true when the lookup is completed. It uses poll internally * to determine the status of the socket. */ @@ -97,7 +97,7 @@ public: * query is invalid for some reason, e.g. the dns server not responding. */ int GetFD(); - void SetNS(std::string dnsserver); + void SetNS(const std::string &dnsserver); }; /** This is the handler function for multi-threaded DNS. |