diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2012-08-24 11:24:03 +0200 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2012-08-24 11:24:03 +0200 |
commit | ce0a7ea2c8f57f0488ba9843dafb42c90092fa77 (patch) | |
tree | a0e20eb1baee503594037353ef48982af058c6fd /src | |
parent | eba66fc7360744a4f205a503f8c5eba06550dd40 (diff) | |
download | dabmod-ce0a7ea2c8f57f0488ba9843dafb42c90092fa77.tar.gz dabmod-ce0a7ea2c8f57f0488ba9843dafb42c90092fa77.tar.bz2 dabmod-ce0a7ea2c8f57f0488ba9843dafb42c90092fa77.zip |
crc-dabmod: RemoteControl solved compatibility issue with Boost 1.46r6
Diffstat (limited to 'src')
-rw-r--r-- | src/RemoteControl.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/RemoteControl.cpp b/src/RemoteControl.cpp index ad745db..bd401f4 100644 --- a/src/RemoteControl.cpp +++ b/src/RemoteControl.cpp @@ -25,9 +25,6 @@ #include <string> #include <iostream> #include <string> -#include <boost/bind.hpp> -#include <boost/shared_ptr.hpp> -#include <boost/enable_shared_from_this.hpp> #include <boost/asio.hpp> #include "RemoteControl.h" @@ -56,10 +53,14 @@ RemoteControllerTelnet::process(long) boost::system::error_code ignored_error; - boost::asio::write(socket, boost::asio::buffer(welcome_), ignored_error); + boost::asio::write(socket, boost::asio::buffer(welcome_), + boost::asio::transfer_all(), + ignored_error); while (running_ && in_message != "quit") { - boost::asio::write(socket, boost::asio::buffer(prompt_), ignored_error); + boost::asio::write(socket, boost::asio::buffer(prompt_), + boost::asio::transfer_all(), + ignored_error); in_message = ""; @@ -214,6 +215,8 @@ RemoteControllerTelnet::reply(tcp::socket& socket, string message) boost::system::error_code ignored_error; stringstream ss; ss << message << "\r\n"; - boost::asio::write(socket, boost::asio::buffer(ss.str()), ignored_error); + boost::asio::write(socket, boost::asio::buffer(ss.str()), + boost::asio::transfer_all(), + ignored_error); } |