11 #include "../../data_structures/data_buffer/data_buffer.hpp"
75 void appendBytes(
const unsigned char* data,
size_t len);
91 const int&
getFd()
const;
A simple LIFO data buffer for serialization and deserialization for simple data types and std::string...
Class representing a structured message for network communication.
void setType(Message::Type type)
std::vector< unsigned char > getSerializedData() const
void decr_cursor(size_t len) const
void setMessageFd(int fd)
Message::Type type() const
const Message & operator>>(T &value) const
void appendBytes(const unsigned char *data, size_t len)
void incr_cursor(size_t len) const
const int & getFd() const
Message(int fd, Type type)
Message & operator<<(const T &value)