11 #ifndef CHAT_MESSAGE_HPP 12 #define CHAT_MESSAGE_HPP 61 body_length_ = new_length;
70 body_length_ = std::atoi(header);
82 std::sprintf(header,
"%4d", static_cast<int>(body_length_));
88 std::size_t body_length_;
91 #endif // CHAT_MESSAGE_HPP const char * data() const
const char * body() const
std::size_t length() const
void body_length(std::size_t new_length)
std::size_t body_length() const