You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2020. It is now read-only.
- Example 1 [rls](https://github.com/phyunsj/oncrpc-api-design/tree/master/rls) (remote `ls` - original version)
5
+
6
+
- Example 2 [rls_v2](https://github.com/phyunsj/oncrpc-api-design/tree/master/rls_v2) (revised)
7
+
8
+
- Example 3 [calc](https://github.com/phyunsj/oncrpc-api-design/tree/master/calc)
9
+
10
+
## Example 3 calc
11
+
12
+
**ONCRPC** restricted us to remote procedures that accept a single parameter and return a single parameter. (Might not be true now but stick to this restriction)
13
+
14
+
Instead of starting with **IDL** (like Example 1 & 2), start wtih **API.h** and generate ONCRPC middle-layer automatically. Keep (or share) the same local implementation between RPC server and RPC client.
15
+
16
+
17
+
Similar to non-RPC application, the below files are manaully created. Create RPC middle-layer to integrate the local APIs defined in `cl_calc.h`.
0 commit comments