added a get_header() method to class chat_message

This commit is contained in:
Kjistóf 2016-12-05 15:08:48 +01:00
parent 2b82fc3e1a
commit 0c77d04a3c

View File

@ -35,6 +35,9 @@ namespace chat
size_t length() const size_t length() const
{ return sizeof(char) + _content.size() + sizeof(char); } { return sizeof(char) + _content.size() + sizeof(char); }
message get_header() const
{ return _header; }
}; };
inline std::ostream& operator<<(std::ostream& os, const chat_message& msg) inline std::ostream& operator<<(std::ostream& os, const chat_message& msg)