home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / programm / 6050 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.1 KB  |  37 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!gatech!rpi!fitzgb
  3. From: fitzgb@mml0.meche.rpi.edu (Brian Fitzgerald)
  4. Subject: Re: Help in unix RPC
  5. Message-ID: <!wp3ysk@rpi.edu>
  6. Nntp-Posting-Host: mml0.meche.rpi.edu
  7. Organization: Rensselaer Polytechnic Institute, Troy, NY
  8. References: <1993Jan24.174609.16286@dragon.acadiau.ca>
  9. Date: Tue, 26 Jan 1993 13:57:05 GMT
  10. Lines: 25
  11.  
  12. Wing Ho Kwan - Louie writes:
  13. >Hi,
  14. >Another question in unix rpc
  15. >
  16. >Do anyone knows how many parameters can pass to procedures.
  17. >Since I find that the rpcgen can only allows me to have one parameter
  18. >in each server procedure..... (is it quite limited ????!!!!)
  19. >
  20. >If you have any suggestions , please let me knows
  21. >Thanks for advances......
  22.  
  23. Right.  You can pass at most, one parameter.
  24.  
  25. Same for the return value.
  26.  
  27. However, this generalizes well, because you can pass (return) a pointer
  28. to a structure, and the structure can have as much information as
  29. desired, including other structures, arrays of characters, etc.
  30.  
  31. For example, see /usr/include/rpcsvc/rstat.x
  32.  
  33. It was probably done this way in order to simplify the design of the
  34. supporting rpc and xdr library routines.
  35.  
  36. Brian
  37.