summaryrefslogtreecommitdiff
path: root/src/resolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resolver.h')
-rw-r--r--src/resolver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resolver.h b/src/resolver.h
index ea4a57b..35c2bc4 100644
--- a/src/resolver.h
+++ b/src/resolver.h
@@ -40,16 +40,16 @@
#include "datatypes.h"
#include "threadUtils.hpp"
-typedef boost::function<void (const boost::asio::ip::udp::resolver::iterator)> UdpResolveCallback;
-typedef boost::function<void (const boost::asio::ip::tcp::resolver::iterator)> TcpResolveCallback;
+typedef boost::function<void (boost::asio::ip::udp::resolver::iterator)> UdpResolveCallback;
+typedef boost::function<void (boost::asio::ip::tcp::resolver::iterator)> TcpResolveCallback;
typedef boost::function<void (std::runtime_error const&)> ErrorCallback;
template<class Proto>
class ResolveHandler
{
public:
- ResolveHandler(const std::string& addr, const std::string& port, boost::function<void (const boost::asio::ip::basic_resolver_iterator<Proto>)> const& onResolve, ErrorCallback const& onError, ResolvAddrType r = ANY);
- void operator()(const boost::system::error_code& e, const boost::asio::ip::basic_resolver_iterator<Proto>);
+ ResolveHandler(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::basic_resolver_iterator<Proto>)> const& onResolve, ErrorCallback const& onError, ResolvAddrType r = ANY);
+ void operator()(const boost::system::error_code& e, boost::asio::ip::basic_resolver_iterator<Proto>);
private:
std::string addr_;