diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-07-21 15:35:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-31 19:35:04 (GMT) |
commit | f8fd5a979cb4acd8a37632c29b453a426e798178 (patch) | |
tree | aa63166aeb23b792cbe1dac1581a40ac04bdcf88 /Source/cmServerConnection.h | |
parent | 6afc7f8828e5199395edfb10ac1a55891596907d (diff) | |
download | CMake-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.h | 12 |
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); }; /*** |