diff options
author | Dmitry K <winsvega@mail.ru> | 2016-08-02 16:11:04 +0800 |
---|---|---|
committer | Dmitry K <winsvega@mail.ru> | 2016-08-02 16:11:04 +0800 |
commit | d1c744450965644df17fcc73006dd7495e75c477 (patch) | |
tree | 8a175cef7d1e4661a6639d6ae09714711c113ef4 /test/RPCSession.cpp | |
parent | 17957d3a93a0d7cf6d4a0081d72ee7e35c898c56 (diff) | |
download | dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar.gz dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar.bz2 dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar.lz dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar.xz dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.tar.zst dexon-solidity-d1c744450965644df17fcc73006dd7495e75c477.zip |
windowspipe
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r-- | test/RPCSession.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index 54e1675f..68369567 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -32,6 +32,8 @@ using namespace dev; IPCSocket::IPCSocket(string const& _path): m_path(_path) { +#if defined(_WIN32) +#else if (_path.length() >= sizeof(sockaddr_un::sun_path)) BOOST_FAIL("Error opening IPC: socket path is too long!"); @@ -48,10 +50,14 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path) BOOST_FAIL("Error connecting to IPC socket: " << _path); m_fp = fdopen(m_socket, "r"); +#endif } string IPCSocket::sendRequest(string const& _req) { +#if defined(_WIN32) + return ""; +#else send(m_socket, _req.c_str(), _req.length(), 0); char c; @@ -64,6 +70,7 @@ string IPCSocket::sendRequest(string const& _req) break; } return response; +#endif } RPCSession& RPCSession::instance(const string& _path) |