diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-03 23:54:03 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-03 23:54:03 +0800 |
commit | cde59bdb90b9899871fbbe473d8bee8d7be2465d (patch) | |
tree | 6cb82a99313392c31f4bfa60d5e317bc9a6f2895 /jsonrpc.cpp | |
parent | 07d08e3af3afb99014cec91d39ce0ca36d710517 (diff) | |
download | dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar.gz dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar.bz2 dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar.lz dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar.xz dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.tar.zst dexon-solidity-cde59bdb90b9899871fbbe473d8bee8d7be2465d.zip |
jsonrpc 0.3.0 working, needs cleanup
Diffstat (limited to 'jsonrpc.cpp')
-rw-r--r-- | jsonrpc.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/jsonrpc.cpp b/jsonrpc.cpp index 033339ec..f261a516 100644 --- a/jsonrpc.cpp +++ b/jsonrpc.cpp @@ -29,8 +29,10 @@ #include <libwebthree/WebThree.h> #include <libweb3jsonrpc/WebThreeStubServer.h> #include <libweb3jsonrpc/CorsHttpServer.h> -#include <jsonrpc/connectors/httpserver.h> -#include <jsonrpc/connectors/httpclient.h> +#include <jsonrpccpp/server/connectors/httpserver.h> +#include <jsonrpccpp/client/connectors/httpclient.h> +//#include <jsonrpc/connectors/httpserver.h> +//#include <jsonrpc/connectors/httpclient.h> #include <set> #include "JsonSpiritHeaders.h" #include "TestHelper.h" @@ -54,7 +56,8 @@ dev::WebThreeDirect web3(name, dbPath, true, s, np); unique_ptr<WebThreeStubServer> jsonrpcServer; unique_ptr<WebThreeStubClient> jsonrpcClient; - +jsonrpc::HttpClient httpClient("http://localhost:8080"); + struct JsonrpcFixture { JsonrpcFixture() { @@ -66,7 +69,7 @@ struct JsonrpcFixture { jsonrpcServer->setIdentities({}); jsonrpcServer->StartListening(); - jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080"))); + jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(httpClient)); } ~JsonrpcFixture() { |