crazytrace.hpp 802 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef CRAZYTRACE_HPP
  2. #define CRAZYTRACE_HPP
  3. #include <memory>
  4. #include <string>
  5. #include <cstdlib>
  6. #include <boost/asio.hpp>
  7. #include <boost/log/trivial.hpp>
  8. #include <tins/tins.h>
  9. #include "deviceclient.hpp"
  10. #include "nodecontainer.hpp"
  11. #include "noderequest.hpp"
  12. class Crazytrace
  13. {
  14. public:
  15. explicit Crazytrace(boost::asio::any_io_executor ex,
  16. int native_handler,
  17. std::shared_ptr<NodeContainer> nodecontainer);
  18. private:
  19. void _handle_error(const boost::system::error_code error) const;
  20. void _handle_packet(const boost::system::error_code error,
  21. const std::string& packet_data);
  22. std::shared_ptr<NodeContainer> _nodecontainer;
  23. DeviceClient<1520> _client;
  24. };
  25. #endif