diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-07-19 20:23:34 -0600 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-31 15:35:04 -0400 |
commit | 7ef28843618519c222806a0df82ed8f87ad2ca0c (patch) | |
tree | 723cabf43743d04b7ed34edac2cef223eaba2ac0 /Source/cmServerConnection.cxx | |
parent | dc7a18d82eb0013a2afbdea9ba5fec131fc3179f (diff) | |
download | cmake-7ef28843618519c222806a0df82ed8f87ad2ca0c.tar.gz |
server: Moved buffer formatting into bufferstrategy
Diffstat (limited to 'Source/cmServerConnection.cxx')
-rw-r--r-- | Source/cmServerConnection.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmServerConnection.cxx b/Source/cmServerConnection.cxx index dd1493233a..e6864035f3 100644 --- a/Source/cmServerConnection.cxx +++ b/Source/cmServerConnection.cxx @@ -153,6 +153,13 @@ void cmConnectionBufferStrategy::clear() { } +std::string cmServerBufferStrategy::BufferOutMessage( + const std::string& rawBuffer) const +{ + return std::string("\n") + kSTART_MAGIC + std::string("\n") + rawBuffer + + kEND_MAGIC + std::string("\n"); +} + std::string cmServerBufferStrategy::BufferMessage(std::string& RawReadBuffer) { for (;;) { |