diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-08 02:42:23 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-08 02:42:23 +0000 |
commit | 951d51c32f93d9fb1e6e697843b19b9b698e39a1 (patch) | |
tree | d3af3018b8a435c92e05b209a3f3f5839c727509 /src/packetSource.h | |
parent | added visual studio build targets with gcrypt (diff) |
moved to resolver iterator at onResolve callback functions
Diffstat (limited to 'src/packetSource.h')
-rw-r--r-- | src/packetSource.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/packetSource.h b/src/packetSource.h index 626a259..f388517 100644 --- a/src/packetSource.h +++ b/src/packetSource.h @@ -40,6 +40,7 @@ // TODO: fix this when other packetSource types are introduced typedef boost::asio::ip::udp::endpoint PacketSourceEndpoint; +typedef boost::asio::ip::udp::resolver::iterator PacketSourceResolverIt; class PacketSource { @@ -65,7 +66,7 @@ public: u_int32_t recv(u_int8_t* buf, u_int32_t len, PacketSourceEndpoint& remote); void send(u_int8_t* buf, u_int32_t len, PacketSourceEndpoint remote); - void onResolve(const boost::asio::ip::udp::endpoint& e); + void onResolve(const PacketSourceResolverIt& it); void onError(const std::runtime_error& e); private: |