home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / tcpiptk / rpcgen / readme next >
Text File  |  1999-05-11  |  994b  |  33 lines

  1.      RPCGEN consists of three user written files, RG.X, RGUS.C
  2.      and RGUC.C (located in \TOOLKIT\SAMPLES\TCPIPTK\RPCGEN).
  3.  
  4.      RG.X defines the remote procedure characteristics.
  5.      RGUS.C demonstrates an RPC Server program.
  6.      RGUC.C demonstrates an RPC Client program.
  7.  
  8.      Following are details on building and executing the
  9.      RPCGEN Samples:
  10.  
  11.      1)  Perform the following:
  12.  
  13.            rpcgen rg.x
  14.  
  15.          This generates rg.h, rg.i, rgs.c, rgc.c, and rgx.c.
  16.  
  17.      2)  From rgx.c, add the include headers to rgus.c, and rguc.c
  18.          (if they don't already exists).
  19.  
  20.      3)  Run rpcgsamp.cmd to compile rgus.c, rguc.c, rgs.c, and rgc.c.
  21.          Link rgs.obj, and rgus.obj to generate rgs.exe.
  22.          Link rgc.obj, and rguc.obj to generate rgc.exe.
  23.  
  24.      4)  Start portmap.exe, and rgs.exe on the same machine:
  25.  
  26.            start portmap
  27.            start rgs
  28.  
  29.      5)  Start rgc.exe by typing:
  30.  
  31.            rgc hostname "user_input string"
  32.  
  33.