badaix / jsonrpcpp Goto Github PK
View Code? Open in Web Editor NEWC++ JSON-RPC 2.0 library
License: MIT License
C++ JSON-RPC 2.0 library
License: MIT License
Hello,
great job so far with your jsonrpcpp.
It's easy to use. One thing that came to me while using it was, that trying to use it with a server with
lots of parallel jsonrpc calls, the parser callbacks cannot be used in a multi-threaded environment because they lack synchronisation with the manipulation of the callback container. So if the callback library is changing, while there is heavy load on the line, this could cause some unexpected behaviour. Would be nice, if you might integrate this in a future release.
A second thing that would be nice to have is a callback wrapper for responses on the client side, to support asynchronous call handling.
I wrapped both of those things arround from outside so far.
If you need any assistance I'd be glad to help with a fork.
Best regards and keep going.
Hello,
I cant build the library on
Darwin MacBook-Pro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112 arm64
below steps to replicate the issue ๐
Make a git clone
go to project folder
cmake .
make
You will end with error
make
[ 25%] Building CXX object example/CMakeFiles/jsonrpcpp_example.dir/jsonrpcpp_example.cpp.o
[ 50%] Linking CXX executable jsonrpcpp_example
[ 50%] Built target jsonrpcpp_example
[ 75%] Building CXX object test/CMakeFiles/jsonrpcpp_test.dir/test_main.cpp.o
In file included from /Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/test_main.cpp:10:
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:8122:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
CATCH_BREAK_INTO_DEBUGGER();
^
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:7834:79: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
#define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }()
^
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:7813:34: note: expanded from macro 'CATCH_TRAP'
#define CATCH_TRAP() asm("int $3\n" : : ) /* NOLINT */
^
:1:2: note: instantiated into assembly here
int $3
^
1 error generated.
make[2]: *** [test/CMakeFiles/jsonrpcpp_test.dir/test_main.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/jsonrpcpp_test.dir/all] Error 2
make: *** [all] Error 2
Hi there,
I'm trying to use the JSonrpc with Visual studio 2019, actually i've integrated it to Unreal which is fine, but when i try to compile the code i get the following error
From code perspective i've added the following function that it is said being deleted
and same for the Request class i added the same default constructor
Do you have any idea how to fix the issue ?
Thanks
Hi! Thank you for the library!
Please - can you make a release for 1.3.0 version on GitHub. It'll help a lot with packaging your library into Conan.
Thank you!
I am trying to get snapcast into homebrew. As there is no release for this library, I am currently stuck.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.