From 16abad80ef9808f2f5bb8420d2afab2111eec502 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 3 Jul 2016 01:30:11 +0200 Subject: fixed boost::bind problem with resolver on GCC-6 --- src/anytun-config.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/anytun-config.cpp') diff --git a/src/anytun-config.cpp b/src/anytun-config.cpp index ff36487..ccdcc2c 100644 --- a/src/anytun-config.cpp +++ b/src/anytun-config.cpp @@ -99,7 +99,7 @@ void createConnection(const PacketSourceEndpoint& remote_end, ConnectionList& cl sem.up(); } -void createConnectionResolver(PacketSourceResolverIt& it, ConnectionList& cl, uint16_t seqSize, SyncQueue& queue, mux_t mux, Semaphore& sem) +void createConnectionResolver(PacketSourceResolverIt it, ConnectionList& cl, uint16_t seqSize, SyncQueue& queue, mux_t mux, Semaphore& sem) { createConnection(*it, cl, seqSize, queue, mux, sem); } @@ -139,10 +139,10 @@ int main(int argc, char* argv[]) int ret = 0; UDPPacketSource::proto::endpoint endpoint; // allow emtpy endpoint!!! -// gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(), -// boost::bind(createConnectionResolver, _1, boost::ref(cl), gOpt.getSeqWindowSize(), boost::ref(queue), gOpt.getMux(), boost::ref(sem)), -// boost::bind(createConnectionError, _1, boost::ref(sem), boost::ref(ret)), -// gOpt.getResolvAddrType()); + gResolver.resolveUdp(gOpt.getRemoteAddr(), gOpt.getRemotePort(), + boost::bind(createConnectionResolver, _1, boost::ref(cl), gOpt.getSeqWindowSize(), boost::ref(queue), gOpt.getMux(), boost::ref(sem)), + boost::bind(createConnectionError, _1, boost::ref(sem), boost::ref(ret)), + gOpt.getResolvAddrType()); sem.down(); return ret; } -- cgit v1.2.3