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
1 changed files with 3 additions and 0 deletions

View File

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