libjapi is a universal JSON to C API library. It receives newline-delimited JSON (NDJSON) messages via TCP and calls registered C functions. A JSON response is returned for each request. Furthermore, it is also possible to create push services, which asynchronously push JSON messages to the clients subscribed to them.
The current implementation requires the user to call the blocking japi_start_server function in order to start the JAPI server. A thread-based non-blocking implementation shall be provided as well.
e.g. japi_start_server_thread
Caution: proper methods to stop the JAPI server thread need to be implemented as well!
In GitLab by @cstender on Dec 30, 2021, 11:18
The current implementation requires the user to call the blocking
japi_start_server
function in order to start the JAPI server. A thread-based non-blocking implementation shall be provided as well.e.g.
japi_start_server_thread
Caution: proper methods to stop the JAPI server thread need to be implemented as well!