Skip to content

Initial hacking on RPC server

Nick Mathewson requested to merge nickm/arti:rpc-hack into main

This is what I've got so far. It handles our json formats, and provides an RPC session object that multiplexes asynchronous requests.

If you build with the rpc feature enabled on Arti, you can connect to a unix named pipe, and use it to echo messages back to you: amazing! There are instructions in doc/dev/notes/rpc-meta-draft.

There are a bunch of things to clean up:

  • Lots of TODOs
  • Need to deploy our standard warnings
  • Need to stabilize our error encoding
  • Need to perform object lookup
  • There are no useful commands yet.

(To be clear, I'm hoping the review will let me know what you think of the initial approach, and what else you think should be solved before we merge and continue.)

Open high-level questions for the reviewer:

  • What needs to happen before this can be merged?
  • What are the next steps after this is merged?
  • How can the overall architecture/implementation/system be improved?
Edited by Nick Mathewson

Merge request reports

Loading