#ifndef COMPONENT__PLOTTER_HPP #define COMPONENT__PLOTTER_HPP #include // sockaddr_in #include #include #include namespace component { class Plotter { public: Plotter(std::string host = "127.0.0.1", uint16_t port = 9870); ~Plotter(); void plot(const nlohmann::json & json); private: int socket_; sockaddr_in destination_; std::mutex mutex_; }; } // namespace component #endif // COMPONENT__PLOTTER_HPP