added a get_header() method to class chat_message
This commit is contained in:
parent
2b82fc3e1a
commit
0c77d04a3c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user