Skip to content

libkit/jsonrpc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonrpc

JSON-RPC in C (server only for now)

What?

A library for a C program to receive JSON-RPC requests on tcp sockets (no HTTP).

Free software, MIT license.

Why?

I needed a way for an application written in C, running on an embedded Linux system to be configured by a Java/Swing configuration tool running on a connected laptop. Wanted something simple, human readable, and saw no need for HTTP.

How?

It depends on libev (was already used on the embedded app) and includes cJSON (with a small patch on my fork). No further dependencies.

###Testing

Run cmake . before make

Test the example server by running it and typing:

echo "{\"method\":\"sayHello\"}" | nc localhost 1234

or

echo "{\"method\":\"exit\"}" | nc localhost 1234

depends

#ubuntu
sudo apt-get install libev-dev

Who?

@hmngomes

[email protected]

About

JSON-RPC in C (server only for now)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.8%
  • CMake 1.2%