summaryrefslogtreecommitdiff
path: root/src/resolver.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-04 20:32:22 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-04 20:32:22 +0000
commit352a4127cfb100a3fb59064e4b4e0de7a3b885a0 (patch)
tree8ff1814e5e952d88af67bbc2a8f7ddbd611eed4c /src/resolver.h
parent - extended gResolver: supports completion-callback (diff)
fix build
Diffstat (limited to 'src/resolver.h')
-rw-r--r--src/resolver.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolver.h b/src/resolver.h
index 9fe51b2..96617f2 100644
--- a/src/resolver.h
+++ b/src/resolver.h
@@ -42,13 +42,13 @@ template<class Proto>
class ResolveHandler
{
public:
- ResolveHandler(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::udp::endpoint)> const& onResolve);
+ ResolveHandler(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::basic_endpoint<Proto>)> const& onResolve);
void operator()(const boost::system::error_code& e, const boost::asio::ip::basic_resolver_iterator<Proto>);
private:
std::string addr_;
std::string port_;
- boost::function<void (boost::asio::ip::udp::endpoint)> callback_;
+ boost::function<void (boost::asio::ip::basic_endpoint<Proto>)> callback_;
};
typedef ResolveHandler<boost::asio::ip::udp> UdpResolveHandler;
@@ -63,7 +63,7 @@ public:
/*static */void run(/*void* s*/);
void resolveUdp(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::udp::endpoint)> const& onResolve);
- void resolveTcp(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::udp::endpoint)> const& onResolve);
+ void resolveTcp(const std::string& addr, const std::string& port, boost::function<void (boost::asio::ip::tcp::endpoint)> const& onResolve);
private:
Resolver();