From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,554e87365bcf79e0 X-Google-Attributes: gidf678f,public X-Google-Thread: 115614,554e87365bcf79e0 X-Google-Attributes: gid115614,public X-Google-ArrivalTime: 1993-06-09 13:54:33 PST Xref: gmd.de comp.unix.aix:15475 comp.unix.osf.misc:273 Path: gmd.de!xlink.net!howland.reston.ans.net!newsserver.jvnc.net!yale.edu!think.com!paperboy.osf.org!rsalz From: rsalz@osf.org (Rich Salz) Newsgroups: comp.unix.aix,comp.unix.osf.misc Subject: Re: Variable Number of Arguments in DCE RPC Date: 9 Jun 1993 19:19:08 GMT Organization: Open Software Foundation Distribution: world Message-ID: <1v5d3c$hak@paperboy.osf.org> References: <1v29gu$efa@rag.austin.nam.slb.com> NNTP-Posting-Host: earth.osf.org 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$