summaryrefslogtreecommitdiff
path: root/src/syncServer.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-11-24 15:58:21 +0000
committerChristian Pointner <equinox@anytun.org>2008-11-24 15:58:21 +0000
commit347f038c20550a4e5e2a4747c339d36991bb5214 (patch)
tree2091fcc2e661f8adbb0fd28659fb28b70d433779 /src/syncServer.h
parentfixed anytun-showtables (diff)
fixes for boost 1.35 and higher
Diffstat (limited to 'src/syncServer.h')
-rw-r--r--src/syncServer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syncServer.h b/src/syncServer.h
index d7317db..ed0d4fd 100644
--- a/src/syncServer.h
+++ b/src/syncServer.h
@@ -9,7 +9,7 @@
#include "threadUtils.hpp"
-#include <asio.hpp>
+#include <boost/asio.hpp>
#include <list>
#include "syncTcpConnection.h"
@@ -18,15 +18,15 @@
class SyncServer
{
public:
- SyncServer(asio::io_service& io_service, asio::ip::tcp::endpoint tcp_endpoint );
+ SyncServer(boost::asio::io_service& io_service, boost::asio::ip::tcp::endpoint tcp_endpoint );
boost::function<void(SyncTcpConnection *)> onConnect;
std::list<SyncTcpConnection::pointer> conns_;
void send(std::string message);
private:
void start_accept();
void handle_accept(SyncTcpConnection::pointer new_connection,
- const asio::error_code& error);
+ const boost::system::error_code& error);
Mutex mutex_; //Mutex for list conns_
- asio::ip::tcp::acceptor acceptor_;
+ boost::asio::ip::tcp::acceptor acceptor_;
};
#endif