server: Moved buffer formatting into bufferstrategy

This commit is contained in:
Justin Berger
2017-07-19 20:23:34 -06:00
committed by Brad King
parent dc7a18d82e
commit 7ef2884361
5 changed files with 25 additions and 3 deletions
+11
View File
@@ -38,6 +38,17 @@ public:
*/
virtual std::string BufferMessage(std::string& rawBuffer) = 0;
/***
* Called to properly buffer an outgoing message.
*
* @param rawBuffer Message to format in the correct way
*
* @return Formatted message
*/
virtual std::string BufferOutMessage(const std::string& rawBuffer) const
{
return rawBuffer;
};
/***
* Resets the internal state of the buffering
*/