#include "Runtime.hpp" #include "Sender.hpp" #include #ifndef PLATFORM_WINDOWS # include # include #else # include # include #endif void Sender::Simple::write(std::string_view str, bool moreData) { this->write(reinterpret_cast(str.data()), str.size(), moreData); } void Sender::Simple::write(const std::byte *data, size_t size, bool moreData) { std::string fres; // Write send(fd, reinterpret_cast(data), size, MSG_FLAGS_OR_ZERO(MSG_WAITALL | MSG_NOSIGNAL | (int(moreData)*MSG_MORE))); }