summaryrefslogtreecommitdiff
path: root/src/syncTcpConnection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/syncTcpConnection.h')
-rw-r--r--src/syncTcpConnection.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/syncTcpConnection.h b/src/syncTcpConnection.h
index 1ef9bb7..5af5276 100644
--- a/src/syncTcpConnection.h
+++ b/src/syncTcpConnection.h
@@ -3,7 +3,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/function.hpp>
-#include <asio.hpp>
+#include <boost/asio.hpp>
#include <string>
@@ -12,19 +12,19 @@ class SyncTcpConnection
{
public:
typedef boost::shared_ptr<SyncTcpConnection> pointer;
- static pointer create(asio::io_service& io_service)
+ static pointer create(boost::asio::io_service& io_service)
{
return pointer(new SyncTcpConnection(io_service));
};
boost::function<void(SyncTcpConnection *)> onConnect;
- asio::ip::tcp::socket& socket();
+ boost::asio::ip::tcp::socket& socket();
void start();
void Send(std::string message);
private:
- SyncTcpConnection(asio::io_service& io_service);
+ SyncTcpConnection(boost::asio::io_service& io_service);
- void handle_write(const asio::error_code& /*error*/,
+ void handle_write(const boost::system::error_code & /*error*/,
size_t /*bytes_transferred*/);
- asio::ip::tcp::socket socket_;
+ boost::asio::ip::tcp::socket socket_;
};
#endif