From d1c744450965644df17fcc73006dd7495e75c477 Mon Sep 17 00:00:00 2001 From: Dmitry K Date: Tue, 2 Aug 2016 11:11:04 +0300 Subject: windowspipe --- test/RPCSession.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test/RPCSession.h') diff --git a/test/RPCSession.h b/test/RPCSession.h index 1a1fbbe5..fd77ceca 100644 --- a/test/RPCSession.h +++ b/test/RPCSession.h @@ -22,12 +22,32 @@ #include #include #include +#if defined(_WIN32) +#else #include #include #include +#endif #include #include +#if defined(_WIN32) +class IPCSocket : public boost::noncopyable +{ +public: + IPCSocket(std::string const& _path); + std::string sendRequest(std::string const& _req); + ~IPCSocket() { fclose(m_fp); } + + std::string const& path() const { return m_path; } + +private: + FILE *m_fp; + std::string m_path; + int m_socket; + +}; +#else class IPCSocket: public boost::noncopyable { public: @@ -43,6 +63,7 @@ private: int m_socket; }; +#endif class RPCSession: public boost::noncopyable { -- cgit