summaryrefslogtreecommitdiffstats
path: root/Source/cmServerConnection.h
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2017-07-21 15:35:41 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-31 19:35:04 (GMT)
commitf8fd5a979cb4acd8a37632c29b453a426e798178 (patch)
treeaa63166aeb23b792cbe1dac1581a40ac04bdcf88 /Source/cmServerConnection.h
parent6afc7f8828e5199395edfb10ac1a55891596907d (diff)
downloadCMake-f8fd5a979cb4acd8a37632c29b453a426e798178.zip
CMake-f8fd5a979cb4acd8a37632c29b453a426e798178.tar.gz
CMake-f8fd5a979cb4acd8a37632c29b453a426e798178.tar.bz2
server: Made stdio connection accept different types of streams
Diffstat (limited to 'Source/cmServerConnection.h')
-rw-r--r--Source/cmServerConnection.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmServerConnection.h b/Source/cmServerConnection.h
index df404ce..7b0c9b6 100644
--- a/Source/cmServerConnection.h
+++ b/Source/cmServerConnection.h
@@ -45,16 +45,8 @@ public:
bool OnServeStart(std::string* pString) override;
private:
- typedef union
- {
- uv_tty_t* tty;
- uv_pipe_t* pipe;
- } InOutUnion;
-
- bool usesTty = false;
-
- InOutUnion Input;
- InOutUnion Output;
+ void SetupStream(uv_stream_t*& stream, int file_id);
+ void ShutdownStream(uv_stream_t*& stream);
};
/***