summaryrefslogtreecommitdiff
path: root/src/syncServer.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2016-07-03 01:30:11 +0200
committerChristian Pointner <equinox@anytun.org>2016-07-03 01:31:22 +0200
commit16abad80ef9808f2f5bb8420d2afab2111eec502 (patch)
tree1b5c9763d134ffda7eb5ee5b892038a1de881b6d /src/syncServer.cpp
parentstd::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/syncServer.cpp')
-rw-r--r--src/syncServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syncServer.cpp b/src/syncServer.cpp
index 0c2b2b8..1e6e352 100644
--- a/src/syncServer.cpp
+++ b/src/syncServer.cpp
@@ -53,7 +53,7 @@
SyncServer::SyncServer(std::string localaddr, std::string port, ConnectCallback onConnect)
: onConnect_(onConnect)
{
-// gResolver.resolveTcp(localaddr, port, boost::bind(&SyncServer::onResolve, this, _1), boost::bind(&SyncServer::onResolvError, this, _1));
+ gResolver.resolveTcp(localaddr, port, boost::bind(&SyncServer::onResolve, this, _1), boost::bind(&SyncServer::onResolvError, this, _1));
}
SyncServer::~SyncServer()
@@ -65,7 +65,7 @@ SyncServer::~SyncServer()
}
}
-void SyncServer::onResolve(SyncTcpConnection::proto::resolver::iterator& it)
+void SyncServer::onResolve(SyncTcpConnection::proto::resolver::iterator it)
{
while(it != SyncTcpConnection::proto::resolver::iterator()) {
SyncTcpConnection::proto::endpoint e = *it;