home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
toolkit
/
tcpiptk
/
rpcgen
/
readme
next >
Wrap
Text File
|
1996-11-19
|
1KB
|
37 lines
RPCGEN consists of three user written files, RG.X, RGUS.C
and RGUC.C (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.
Following are details on building and executing the
RPCGEN Samples:
1) Perform the following:
rpcgen rg.x
This generates rg.h, rg.i, rgs.c, rgc.c, and rgx.c.
2) From rgx.c, add the include headers to rgus.c, and rguc.c
(if they don't already exists).
3) 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.
Note: IBM C Set/2 may issue a warning message:
Size of switch expression or case constant too large - converted to int.
To overcome this problem, change the switch statement to IF statement.
4) Start portmap.exe, and rgs.exe on the same machine:
start portmap
start rgs
5) Start rgc.exe by typing:
rgc hostname "user_input string"