5 #include <boost/array.hpp>
6 #include <boost/asio.hpp>
7 #include <boost/asio/buffer.hpp>
8 #include <boost/make_shared.hpp>
9 #include <boost/shared_ptr.hpp>
23 Connection(std::string address, std::string port, uint32_t connectionTimeout_sec);
32 std::vector<uint32_t>
read(uint32_t numWordsToRead);
35 void write(
const std::vector<uint32_t>& data);
42 const std::string port_;
43 boost::asio::io_service ioService_;
44 boost::asio::ip::tcp::socket s_;
45 boost::asio::deadline_timer disconnectTimer_;
46 boost::asio::deadline_timer::duration_type connectionTimeout_;
48 void disconnectionTimerStart();
49 void disconnectionTimerCancel(
const boost::system::error_code& ec);