#ifndef _SENDER_HPP #define _SENDER_HPP #include #include #include namespace Sender { class Simple { protected: int fd; public: Simple(int fd) : fd(fd) {} void write(std::string_view, bool moreData = false); void write(const std::byte *data, size_t, bool moreData = false); template auto writeObject(const T& o, bool moreData = false) { return write(reinterpret_cast(&o), sizeof(o), moreData); } }; } #endif