1 #ifndef _ots_TCPPacket_h_
2 #define _ots_TCPPacket_h_
14 static std::string encode(
const std::string& message);
16 bool decode(std::string& message);
21 TCPPacket& operator+=(
const std::string& buffer)
23 this->fBuffer += buffer;
27 friend std::ostream& operator<<(std::ostream& out,
const TCPPacket& packet)
30 out << packet.fBuffer;
36 static constexpr uint32_t headerLength = 4;