From ff9f5aee4b685b8c705bd39d5768eec75a50c5c2 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 8 Jan 2010 03:48:56 +0000 Subject: UDPPacketSource now opens one socket for each resolved endpoint --- src/resolver.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/resolver.h') 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 UdpResolveCallback; -typedef boost::function TcpResolveCallback; +typedef boost::function UdpResolveCallback; +typedef boost::function TcpResolveCallback; typedef boost::function ErrorCallback; template class ResolveHandler { public: - ResolveHandler(const std::string& addr, const std::string& port, boost::function)> const& onResolve, ErrorCallback const& onError, ResolvAddrType r = ANY); - void operator()(const boost::system::error_code& e, const boost::asio::ip::basic_resolver_iterator); + ResolveHandler(const std::string& addr, const std::string& port, boost::function)> const& onResolve, ErrorCallback const& onError, ResolvAddrType r = ANY); + void operator()(const boost::system::error_code& e, boost::asio::ip::basic_resolver_iterator); private: std::string addr_; -- cgit v1.2.3