home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12707 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!darwin.sura.net!mips!odin!chef.reading.sgi.com!walton_a
  3. From: walton_a@chef.reading.sgi.com (Andrew Walton)
  4. Subject: Re: Need help with RPC on Indigo
  5. Message-ID: <1992Aug21.084627.26342@odin.corp.sgi.com>
  6. Keywords: RPC
  7. Sender: news@odin.corp.sgi.com (Net News)
  8. Nntp-Posting-Host: chef.reading.sgi.com
  9. Organization: Silicon Graphics, Inc.
  10. References:  <1992Aug20.211112.19527@u.washington.edu>
  11. Distribution: na
  12. Date: Fri, 21 Aug 1992 08:46:27 GMT
  13. Lines: 27
  14.  
  15. I tried the msg_server example in the 4.0.1 manual and hit similar
  16. problems, when I checked the my old 3.3.3 manual I found the arguments
  17. to the remote calls were reversed, they should be
  18.  
  19.     result = remote_1(&argument, client)
  20.  
  21. in the 4.0.1 manual for some reason they are
  22.  
  23.     result = remoye_1(client, &argument)
  24.  
  25. If you are using rpcgen you can get it to create prototypes with the
  26. -P option but I think there is a bug lurking in there.
  27.  
  28. try rpcgen -P on the following rpc spec
  29.  
  30.     program STRING_TEST {
  31.             version VERSION {
  32.                     int function(string) = 1;
  33.             } = 100;
  34.     } = 200;
  35.  
  36. The C code generated has char ** for the argument pointer, but the
  37. protottype has string * for the argument pointer and string doesn't
  38. appear to be defined in any of the rpc header files.  It looks like 
  39. simple text substitution is used to generate the prototypes.
  40.  
  41.  
  42.