This repository contains a simple JSON-RPC C example.
The JSON-RPC C example demonstrates how to implement a basic JSON-RPC server and client using the C programming language. It provides a simple way to perform remote procedure calls over a network using JSON as the data interchange format.
- Server-side implementation of JSON-RPC using C
- Client-side implementation of JSON-RPC using C
- Basic request and response handling
- Error handling and reporting
To get started with the JSON-RPC C example, follow these steps:
-
Clone the repository:
git clone https://github.com/jac18281828/jsonrpc.git
-
Build the server and client executables:
cd jsonrpc mkdir -p build cmake -H. -Bbuild -DPROJECT_NAME=trimtrain -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_VERBOSE_MAKEFILE=on -Wno-dev "-GUnix Makefiles" make -j
-
Start the server:
build/main
-
Run the client:
./client
The JSON-RPC C example provides a simple API for making remote procedure calls.