From: rsalz@osf.org (Rich Salz)
Subject: Re: Variable Number of Arguments in DCE RPC
Date: 9 Jun 1993 19:19:08 GMT [thread overview]
Message-ID: <1v5d3c$hak@paperboy.osf.org> (raw)
In-Reply-To: 1v29gu$efa@rag.austin.nam.slb.com
In <1v29gu$efa@rag.austin.nam.slb.com> khan@asc.slb.com (Naved Khan) writes:
> Does anyone know if DCE RPC allows the remote procedures to
>have variable number of arguments?
If you mean something like stdargs or varargs, then the answer is that
it cannot be done. If you think about it, you can see that it would
require the IDL stub routine to do the same analysis that the operation
routine would have to do in order to determine the number and type of
arguments. Even then, you could make mistakes:
char *p = "my text";
printf("%s is at %x", p, p);
How would you know that P should be sent over once as a string, and the
second time as a pointer? (Yes, this code isn't 100% portable but you
get the idea.)
/r$
prev parent reply other threads:[~1993-06-09 19:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-02 20:01 DCE accounts with passwd_import Martin Timmerman
1993-06-03 15:19 ` Luc Smolders
1993-06-03 20:47 ` Alex Ranous
1993-06-08 14:59 ` Variable Number of Arguments in DCE RPC Naved Khan
1993-06-09 19:19 ` Rich Salz [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox