Module darkfi::rpc::server

source ·
Expand description

Server-side JSON-RPC implementation


  • Asynchronous trait implementing a handler for incoming JSON-RPC requests.


  • Accept function that should run inside a loop for accepting incoming JSON-RPC requests and passing them to the RequestHandler.
  • Start a JSON-RPC server bound to the given accept URL and use the given RequestHandler to handle incoming requests.
  • Wrapper function around accept() to take the incoming connection and pass it forward.