summaryrefslogtreecommitdiffstats
path: root/Source/cmConnection.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-23 18:31:13 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-29 21:36:31 (GMT)
commit1e9b7d3ceb882d3feb59324b6e55d40cc795576b (patch)
treef1b9dbb8189f8b26ca99cc6ce91e76ccfab44009 /Source/cmConnection.h
parentf43b9219c738944fea33043b1985696c862c84ac (diff)
downloadCMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.zip
CMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.tar.gz
CMake-1e9b7d3ceb882d3feb59324b6e55d40cc795576b.tar.bz2
server: Switched to a auto model for handles
Diffstat (limited to 'Source/cmConnection.h')
-rw-r--r--Source/cmConnection.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmConnection.h b/Source/cmConnection.h
index ddb7744..ce2d2dc 100644
--- a/Source/cmConnection.h
+++ b/Source/cmConnection.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include "cmUVHandlePtr.h"
#include "cm_uv.h"
#include <cstddef>
@@ -107,8 +108,6 @@ public:
bool OnConnectionShuttingDown() override;
virtual void OnDisconnect(int errorCode);
- uv_stream_t* ReadStream = nullptr;
- uv_stream_t* WriteStream = nullptr;
static void on_close(uv_handle_t* handle);
@@ -119,6 +118,8 @@ public:
}
protected:
+ cm::uv_stream_ptr WriteStream;
+
std::string RawReadBuffer;
std::unique_ptr<cmConnectionBufferStrategy> BufferStrategy;