diff options
author | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:30:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2016-07-03 01:31:22 +0200 |
commit | 16abad80ef9808f2f5bb8420d2afab2111eec502 (patch) | |
tree | 1b5c9763d134ffda7eb5ee5b892038a1de881b6d /src/anytun-config.cpp | |
parent | std::auto_ptr is deprecated sinc C++0x use boost:scoped_ptr and boost::shared... (diff) |
fixed boost::bind problem with resolver on GCC-6
Diffstat (limited to 'src/anytun-config.cpp')
-rw-r--r-- | src/anytun-config.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |