home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15926 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.3 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!vision!chris
  2. From: chris@visionware.co.uk (Chris Davies)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: Problem in unix RPC
  5. Message-ID: <1993Jan25.183401.21127@visionware.co.uk>
  6. Date: 25 Jan 93 18:34:01 GMT
  7. References: <1993Jan24.151308.8625@dragon.acadiau.ca>
  8. Sender: news@visionware.co.uk (News Admin)
  9. Organization: VisionWare Ltd., Leeds, UK
  10. Lines: 18
  11. X-Newsreader: Tin 1.1 PL5
  12.  
  13. Wing Ho Kwan - Louie (890758k@dragon.acadiau.ca) wrote:
  14. :  Hi, I am doing some programming in unix rpc.
  15. :  I know that I can pass the value to the server side by call by value.
  16. :  and can get some update date from the return function value.
  17. :  But can I do a function with call by reference and though it 
  18. :  to modify something. 
  19.  
  20. With Sun RPC (and probably the others too, but I don't know for sure)
  21. it only makes sense to pass a parameter by value.  A memory location
  22. won't be much good if it's on a different machine.  However, you could
  23. always arrange for a function to return the updated value, which would
  24. give you pretty much the same effect.
  25.  
  26. Chris
  27. --
  28.             VISIONWARE LTD, 57 Cardigan Lane, LEEDS LS4 2LE, England
  29.   Tel +44 532 788858 x238.  Fax +44 532 304676.  Email chris@visionware.co.uk
  30. ---------- "VisionWare:   The home of DOS/SQL/UNIX/X/VMS integration" ---------
  31.