4.11network-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change
on this file since e6f3168 was
e6f3168,
checked in by Joel Sherrill <joel.sherrill@…>, on 04/29/00 at 19:53:34
|
New test from Eric Norum <eric@…> to exercise RPC/XDR.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | INTRODUCTION |
---|
2 | ============ |
---|
3 | Example RPC server and client. |
---|
4 | |
---|
5 | The test programs are symmetrical: |
---|
6 | - The client runs on the host machine or on the RTEMS target. |
---|
7 | - The server runs on the host machine or on the RTEMS target. |
---|
8 | |
---|
9 | |
---|
10 | BUILDING |
---|
11 | ======== |
---|
12 | You must have rpcgen installed on your host machine. |
---|
13 | |
---|
14 | You must build the host tools first: |
---|
15 | make -f Makefile.host |
---|
16 | |
---|
17 | Then you can build the RTEMS version of the server |
---|
18 | make |
---|
19 | or you can buile the RTEMS version of the client |
---|
20 | make SERVER=hostname |
---|
21 | where hostname is the name of the machine running the RPC server. |
---|
22 | |
---|
23 | |
---|
24 | RUNNING |
---|
25 | ======= |
---|
26 | 1) Server on RTEMS machine, client on host machine: |
---|
27 | Download and run the server code on the RTEMS machine |
---|
28 | Run the client on the host machine |
---|
29 | ./rprintmsg rtems_hostname "Some message to print" |
---|
30 | |
---|
31 | 2) Server on host machine, client on RTEMS machine: |
---|
32 | Start server on host machine |
---|
33 | ./server |
---|
34 | Download and run the client code on the RTEMS machine |
---|
35 | |
---|
36 | |
---|
37 | CHANGING |
---|
38 | ======== |
---|
39 | If you want to try out more or different remote procedures: |
---|
40 | 1) Make the changes to msg.x. |
---|
41 | 2) Make the corresponding server changes to msg_proc.c. |
---|
42 | 3) Make the corresponding client changes to rprintmsg.c. |
---|
43 | |
---|
44 | |
---|
45 | FILES |
---|
46 | ===== |
---|
47 | init.c - RTEMS configuration/initial task. |
---|
48 | msg.x - Source file for rpcgen. |
---|
49 | msg_main.c - Server main routine -- RTEMS or host. |
---|
50 | msg_proc.c - Example implementation of RPC server-side routines. |
---|
51 | rprintmsg.c - Client main routine -- RTEMS or host. |
---|
52 | |
---|
53 | |
---|
54 | CLEANUP |
---|
55 | ======= |
---|
56 | To clean up the results of the build process: |
---|
57 | make clean |
---|
58 | make -f Makefile.host clean |
---|
Note: See
TracBrowser
for help on using the repository browser.