home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5355 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.9 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!agate!linus!linus.mitre.org!boole.mitre.org!crawford
  2. From: crawford@boole.mitre.org (Randy Crawford)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: RPC server did not return status
  5. Keywords: RPC
  6. Message-ID: <1992Nov18.032708.12062@linus.mitre.org>
  7. Date: 18 Nov 92 03:27:08 GMT
  8. References: <1992Nov11.095253.23538@news.mentorg.com>
  9. Sender: news@linus.mitre.org (News Service)
  10. Organization: The MITRE Corporation, McLean, VA
  11. Lines: 23
  12. Nntp-Posting-Host: boole.mitre.org
  13.  
  14. In article <1992Nov11.095253.23538@news.mentorg.com> thiam-chye_sim@mentorg.com writes:
  15. >
  16. >I wrote a simple RPC program which emulate Apollo's send_alarm on the Sun workstations and ported it to HP-UX. It works perfect on the Sun but the RPC server running on the HP710 doesn't seem to return any status after it finished it's job correctly. The client (both on Sun and HP) calling the server on HP will wait till timeout (value preset in the program) and exit.
  17. >
  18. >The HP710 is  running HP-UX 9.0 . Do I have to tell the server explicitly
  19. >to send finish status to it's clients?
  20.  
  21. No additional input to the server should be necessary.  However, I believe a 
  22. return integer* from the server _is_ customary.  After all, aren't the 
  23. rpcgenned functions (like whatever_1() ) typed to return an int?  Be sure 
  24. that the return pointer is to a global or static integer.  Don't return the
  25. address of an automatic/stack variable.
  26.  
  27. Did you try using rpcgen on the HP on your whetever.x file, and then compiling 
  28. up the new HP rpcgenned code?  The two rpcgens are a tad different (using 
  29. bzero() on the sun and goofing up memset() on the HP is "hpux" isn't defined).
  30. It's worth a try.
  31.  
  32. -- 
  33.  
  34. | Randy Crawford        crawford@mitre.org        The MITRE Corporation
  35. |                                                 7525 Colshire Dr., MS Z421
  36. | N=1 -> P=NP           703 883-7940              McLean, VA  22102
  37.