added a get_content() method, which excludes command byte & term byte
This commit is contained in:
parent
d673fd24d1
commit
cf4bc2f142
@ -33,6 +33,9 @@ namespace chat
|
|||||||
|
|
||||||
std::string get() const
|
std::string get() const
|
||||||
{ return byte(_header) + _content + byte(message::TERM); }
|
{ return byte(_header) + _content + byte(message::TERM); }
|
||||||
|
|
||||||
|
std::string get_content() const
|
||||||
|
{ return _content; }
|
||||||
};
|
};
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const chat_message& msg)
|
std::ostream& operator<<(std::ostream& os, const chat_message& msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user