From 951d51c32f93d9fb1e6e697843b19b9b698e39a1 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 8 Jan 2010 02:42:23 +0000 Subject: moved to resolver iterator at onResolve callback functions --- src/packetSource.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/packetSource.cpp') diff --git a/src/packetSource.cpp b/src/packetSource.cpp index 0882de5..c9a0412 100644 --- a/src/packetSource.cpp +++ b/src/packetSource.cpp @@ -50,8 +50,10 @@ UDPPacketSource::UDPPacketSource(std::string localaddr, std::string port) : sock gResolver.resolveUdp(localaddr, port, boost::bind(&UDPPacketSource::onResolve, this, _1), boost::bind(&UDPPacketSource::onError, this, _1), gOpt.getResolvAddrType()); } -void UDPPacketSource::onResolve(const boost::asio::ip::udp::endpoint& e) +void UDPPacketSource::onResolve(const PacketSourceResolverIt& it) { + PacketSourceEndpoint e = *it; + cLog.msg(Log::PRIO_NOTICE) << "opening socket: " << e; sock_.open(e.protocol()); sock_.bind(e); -- cgit v1.2.3