Skip to content

jonahharris/hpjsrpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSMN RPC

This repository contains a JSON RPC implementation that is built on top of JSMN JSON parser. It does have some dependencies, but only the most basic ones. It is mean for use in embedded environments, but of couse, doesn't have to be.

The API includes only 3 methods:
rpc_install_methods() --- connects C methods to their RPC names.
rpc_handle_command() --- parses and executes a JSON buffer.
workstatus_to_string() --- converts error codes to readable messages.

NOTE: This project uses my branch of JSMN, which can be found here.

See example.c for sample usage. Build example by running build.

About

High-Performance JSON-RPC Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published