Skip to content
This repository was archived by the owner on Nov 16, 2020. It is now read-only.

Commit 0ceaf47

Browse files
authored
Update README.md
1 parent 7e3e6f0 commit 0ceaf47

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

rls_v2/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,27 @@
33
## Example : Passing Complex Data Structures (Version 2)
44
from https://docs.oracle.com/cd/E19683-01/816-1435/rpcgenpguide-21470/index.html
55

6-
#### Hide ONCRPC specific system calls (clnt_xxx(), readdir_1()) from the client program.
6+
## 1. API
7+
8+
`namelist read_dir(char *);` for local only
9+
`namelist READ_DIR( HANDLER *, char * )` for local & remote
10+
11+
## 2. Files
12+
13+
Hide ONCRPC specific system calls (clnt_xxx(), readdir_1()) from `rls.c`.
714

815
- `dir_local.c/h` : `read_dir()` local function to read the directory
9-
- **Server** :`dir_proc.c` executes a local funtion `read_dir()` defined in `dir_local.h`
10-
- **Client** : `READ_DIR():dir_common.c` executes a local function `read_dir():dir_local.c` or communicate with RPC server `readdir_1()` depending on Handler.
16+
- **Server** : `dir_proc.c` executes a local funtion `read_dir()` defined in `dir_local.h`
17+
- **Client** : `READ_DIR():dir_common.c` executes a local function `read_dir():dir_local.c` or communicate with RPC server `readdir_1()` depending on Handler's `CLINET`.
18+
19+
20+
1121
```
1222
main(...)
1323
{
1424
HANDLER handler[2];
1525
...
16-
INIT_HANDLER ( &handler[0] , NULL, NULL);
26+
INIT_HANDLER ( &handler[0] , NULL, NULL);
1727
INIT_HANDLER ( &handler[1] , server, "tcp");
1828
...
1929
/* local call */

0 commit comments

Comments
 (0)