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 >
Text File  |  1996-11-19  |  1KB  |  37 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.          Note: IBM C Set/2 may issue a warning message:
  25.                Size of switch expression or case constant too large - converted to int.
  26.                To overcome this problem, change the switch statement to IF statement.
  27.  
  28.      4)  Start portmap.exe, and rgs.exe on the same machine:
  29.  
  30.            start portmap
  31.            start rgs
  32.  
  33.      5)  Start rgc.exe by typing:
  34.  
  35.            rgc hostname "user_input string"
  36.  
  37.