RPCGEN consists of three user-written files located in \TOOLKIT\SAMPLES\TCPIPTK\RPCGEN):
- RG.X defines the remote procedure characteristics
- RGUS.C demonstrates an RPC server program
- RGUC.C demonstrates an RPC client program
The following explains how to build and run the RPCGEN samples.
- Perform the following:
rpcgen rg.x
This generates rg.h, rg.i, rgs.c, rgc.c, and rgx.c.
- From rgx.c, add the include headers to rgus.c
and rguc.c if they do not already exist
- Run rpcgsamp.cmd to compile rgus.c, rguc.c, rgs.c,
and rgc.c
Link rgs.obj and rgus.obj to generate rgs.exe
Link rgc.obj and rguc.obj to generate rgc.exe
- Start portmap.exe and rgs.exe on the same machine:
start portmap
start rgs
- Start rgc.exe by typing:
rgc hostname "user_input string"
[Back]
[Next]