hmng / jsonrpc-c Goto Github PK
View Code? Open in Web Editor NEWJSON-RPC in C (server only for now)
License: MIT License
JSON-RPC in C (server only for now)
License: MIT License
I took me a while to note that parameters have to be put in "params". Maybe you want to document that in the README.md ;)
Hi hmn,
for my project, I need to work with "select". I would like to add support for this.
The user will have option to choose only select or only libev at compilation time.
Are you interested in adding this feature to the master branch?
Thanks
Is JSON-RPC Version 2.0 supported?
Official specifications of Version 2.0 says:
2.0 always has a member named "jsonrpc" with a String value of "2.0"
(http://www.jsonrpc.org/specification#compatibility).
But jsonrpc-c responds without a member named "jsonrpc".
Hi,
Did you guys ever thought about decoupling JSON-RPC API from TCP sockets? For my project I need to use JSON-RPC with messaging system (zeromq/amqp). I like your API and it would be nice just to be able pass a JSON request to the API and receive a string back containing JSON-RPC reply back. This way your API can be uses with any transport not just TCP.
When packaging this as rpm, rpmlint report states:
[ 53s] libjsonrpcc0.x86_64: W: shared-lib-calls-exit /usr/lib64/libjsonrpcc.so.0.0.0 exit@GLIBC_2.2.5
[ 53s] This library package calls exit() or _exit(), probably in a non-fork()
[ 53s] context. Doing so from a library is strongly discouraged - when a library
[ 53s] function calls exit(), it prevents the calling program from handling the
[ 53s] error, reporting it to the user, closing files properly, and cleaning up any
[ 53s] state that the program has. It is preferred for the library to return an
[ 53s] actual error code and let the calling program decide how to handle the
[ 53s] situation."
which sounds a sensible thing to do.
Hi,
can you answer me if jsonrpc-c support notification and how use it?
Like this JSON-RPC v.2 : http://en.wikipedia.org/wiki/JSON-RPC#Version_2.0
Thanks
The cJSON project has a different definition which conflict with this project.
For example:
jsonrpc-c/cJON.h
#define cJSON_NUMBER 3
cJSON/cJON.h
#define cJSON_NUMBER (1<<3)
May you help to upgrade cJSON.c/cJSON.h to sync with the cJSON project?
since the server is embedded in jsonrpc-c it is not usable when using an own server already. When separating server and parsing the lib becomes more flexible.
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.