server: Made stdio connection accept different types of streams

This commit is contained in:
Justin Berger
2017-07-21 09:35:41 -06:00
committed by Brad King
parent 6afc7f8828
commit f8fd5a979c
3 changed files with 110 additions and 55 deletions
+2 -10
View File
@@ -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);
};
/***