{"id":16314691,"url":"https://github.com/angrymane/cap-sample","last_synced_at":"2025-04-26T23:59:40.286Z","repository":{"id":37085428,"uuid":"504557229","full_name":"AngryMane/cap-sample","owner":"AngryMane","description":"A sample rpc client and server using capnproto, EzPRCServer.","archived":false,"fork":false,"pushed_at":"2024-08-21T09:01:17.000Z","size":447,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-26T23:59:35.490Z","etag":null,"topics":["capnproto","rpc","sample-code"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AngryMane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-17T14:04:59.000Z","updated_at":"2024-09-17T05:43:16.000Z","dependencies_parsed_at":"2024-07-10T13:12:16.150Z","dependency_job_id":null,"html_url":"https://github.com/AngryMane/cap-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngryMane%2Fcap-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngryMane%2Fcap-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngryMane%2Fcap-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AngryMane%2Fcap-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AngryMane","download_url":"https://codeload.github.com/AngryMane/cap-sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251068507,"owners_count":21531478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capnproto","rpc","sample-code"],"created_at":"2024-10-10T21:55:01.883Z","updated_at":"2025-04-26T23:59:40.270Z","avatar_url":"https://github.com/AngryMane.png","language":"Rust","readme":"# cap-sample\n\ncap-sample is a sample rpc client and server using capnproto, TwoPartyClent and TwoPartyServer.  \nIf you need a sample of EzRpcServer and Client, see older version of this repository.\n\n## Directory structure\n\n```bash\n$ tree -L 1\n.\n├── CMakeLists.txt  # CMake config file\n├── README.md       # the file you are now reading right now\n├── client          # client project dir\n│   ├── cpp\n│   └── rust\n├── docs            # doxygen document \n├── doxygen.conf    # doxygen config\n├── interface       # capnproto schema and generated sources\n└── server          # server project dir\n    ├── cpp\n    └── rust\n```\n\n## RPC patterns\n\nThere are only only 2 patterns.\n\n1. The client requests `initialize` event to the server\n1. The client requests `subscribe` event to the server, and the server periodically pushes back `push_message` event.\n\n\n## Build capnproto interface, client and server\n\n```bash\n$ mkdir build\n$ cd build\n$ cmake .. \n$ make\n```\n\n## Usage\n\nYou can launch the server and connect client like below.\n\n```bash\n# run server implemented by cpp\n$ ./build/server/cpp/server\n# run server implemented by rust\n$ ./build/server/rust/server_rust\n# run client implemented by cpp\n$ ./build/client/cpp/client\n# run client implemented by rust\n$ ./build/client/rust/client_rust\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrymane%2Fcap-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangrymane%2Fcap-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangrymane%2Fcap-sample/lists"}