Article View: gnu.gcc.help
Article #53441Re: RPC and gcc
From: Anthony Shipman
Date: Tue, 28 Jan 1992 06:35
Date: Tue, 28 Jan 1992 06:35
26 lines
1874 bytes
1874 bytes
uddeborg@sisu.se (G|ran Uddeborg) writes:
>But the stubs generated by rpcgen never return structures; they always
>return pointers to something, structures for example. Similarily for
>the arguments to clnt_call, callrpc, etc.
Here are the arguments to clnt_call() in the old SUN RPC.
static enum clnt_stat
clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout)
register CLIENT *cl; /* client handle */
u_long proc; /* procedure number */
xdrproc_t xargs; /* xdr routine for args */
caddr_t argsp; /* pointer to args */
xdrproc_t xresults; /* xdr routine for results */
caddr_t resultsp; /* pointer to results */
struct timeval utimeout; /* seconds to wait before giving up */
{
The last argument may be the problem.
--
Anthony Shipman "You've got to be taught before it's too late,
Computer Power Group Before you are six or seven or eight,
19 Cato St., East Hawthorn, To hate all the people your relatives hate,
Melbourne, Australia You've got to be carefully taught." R&H
Technical Details
Message-ID:
<1992Jan28.063531.19537@bohra.cpg.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!alsReferences:
<1992Jan23.183131.5242@lgc.com> <1992Jan24.135644.29276@bmerh2.bnr.ca> <1992Jan24.175341.15038@bmerh2.bnr.ca> <1992Jan27.154528.5788@sics.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,7808c10d03c80e0e X-Google-Attributes: gid11318c,public X-Google-Thread: fc89c,7808c10d03c80e0e X-Google-Attributes: gidfc89c,public X-Google-ArrivalTime: 1992-01-28 18:23:52 PST Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!als From: als@bohra.cpg.oz.au (Anthony Shipman) Newsgroups: gnu.gcc.help,comp.unix.programmer Subject: Re: RPC and gcc Message-ID: <1992Jan28.063531.19537@bohra.cpg.oz.au> Date: 28 Jan 92 06:35:31 GMT References: <1992Jan23.183131.5242@lgc.com> <1992Jan24.135644.29276@bmerh2.bnr.ca> <1992Jan24.175341.15038@bmerh2.bnr.ca> <1992Jan27.154528.5788@sics.se> Organization: Computer Power Software Lines: 26