In article <1992Nov11.095253.23538@news.mentorg.com> thiam-chye_sim@mentorg.com writes:
>
>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.
>
>The HP710 is running HP-UX 9.0 . Do I have to tell the server explicitly
>to send finish status to it's clients?
No additional input to the server should be necessary. However, I believe a
return integer* from the server _is_ customary. After all, aren't the
rpcgenned functions (like whatever_1() ) typed to return an int? Be sure
that the return pointer is to a global or static integer. Don't return the
address of an automatic/stack variable.
Did you try using rpcgen on the HP on your whetever.x file, and then compiling
up the new HP rpcgenned code? The two rpcgens are a tad different (using
bzero() on the sun and goofing up memset() on the HP is "hpux" isn't defined).
It's worth a try.
--
| Randy Crawford crawford@mitre.org The MITRE Corporation