Go to the documentation of this file.
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_;
virtual bool disconnect()=0
boost::optional< boost::system::error_code > timer_result_
std::string get_host_ip()
std::string get_device_ip()
Transport(std::string address, transport_type typ)
virtual bool read(boost::array< uint8_t, 4096 > &buf, size_t &len)=0
void set_port(std::string port)
std::shared_ptr< boost::asio::io_service > io_service_
virtual bool readWithTimeout(boost::array< uint8_t, 4096 > &buf, size_t &len, const uint32_t expiry_time)=0
std::shared_ptr< boost::asio::deadline_timer > timer_
transport_type get_type()
void move(std::vector< T > &a, std::vector< T > &b)
pf_driver
Author(s): Harsh Deshpande
autogenerated on Sun Feb 4 2024 03:32:56