summaryrefslogtreecommitdiff
path: root/src/syncTcpConnection.cpp
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/syncTcpConnection.cpp
parentfixed anytun-showtables (diff)
fixes for boost 1.35 and higher
Diffstat (limited to 'src/syncTcpConnection.cpp')
-rw-r--r--src/syncTcpConnection.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/syncTcpConnection.cpp b/src/syncTcpConnection.cpp
index dbd9ac0..5287468 100644
--- a/src/syncTcpConnection.cpp
+++ b/src/syncTcpConnection.cpp
@@ -1,6 +1,6 @@
#include "syncTcpConnection.h"
#include <boost/bind.hpp>
-#include <asio.hpp>
+#include <boost/asio.hpp>
#include <sstream>
#include <iostream>
@@ -14,10 +14,10 @@
#include "syncCommand.h"
#include "buffer.h"
- asio::ip::tcp::socket& SyncTcpConnection::socket()
- {
- return socket_;
- }
+boost::asio::ip::tcp::socket& SyncTcpConnection::socket()
+{
+ return socket_;
+}
void SyncTcpConnection::start()
{
@@ -26,17 +26,17 @@ void SyncTcpConnection::start()
void SyncTcpConnection::Send(std::string message)
{
- asio::async_write(socket_, asio::buffer(message),
+ boost::asio::async_write(socket_, boost::asio::buffer(message),
boost::bind(&SyncTcpConnection::handle_write, shared_from_this(),
- asio::placeholders::error,
- asio::placeholders::bytes_transferred));
+ boost::asio::placeholders::error,
+ boost::asio::placeholders::bytes_transferred));
}
-SyncTcpConnection::SyncTcpConnection(asio::io_service& io_service)
+SyncTcpConnection::SyncTcpConnection(boost::asio::io_service& io_service)
: socket_(io_service)
{
}
-void SyncTcpConnection::handle_write(const asio::error_code& /*error*/,
+void SyncTcpConnection::handle_write(const boost::system::error_code& /*error*/,
size_t /*bytes_transferred*/)
{
}