17 #include <boost/array.hpp> 18 #include <boost/asio.hpp> 19 #include <boost/optional.hpp> 28 virtual bool read(boost::array<uint8_t, 4096>& buf,
size_t& len) = 0;
29 virtual bool readWithTimeout(boost::array<uint8_t, 4096>& buf,
size_t& len,
const uint32_t expiry_time) = 0;
37 port_ = std::move(port);
72 std::shared_ptr<boost::asio::deadline_timer>
timer_;
Transport(std::string address, transport_type typ)
boost::optional< boost::system::error_code > timer_result_
std::shared_ptr< boost::asio::deadline_timer > timer_
std::string get_device_ip()
virtual bool readWithTimeout(boost::array< uint8_t, 4096 > &buf, size_t &len, const uint32_t expiry_time)=0
void set_port(std::string port)
std::shared_ptr< boost::asio::io_service > io_service_
transport_type get_type()
virtual bool disconnect()=0
void move(std::vector< T > &a, std::vector< T > &b)
std::string get_host_ip()
virtual bool read(boost::array< uint8_t, 4096 > &buf, size_t &len)=0