From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,9a36fee7fc1f6cfd X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-09-24 13:21:24 PST Newsgroups: comp.unix.osf.misc Path: gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!swrinde!menudo.uh.edu!uuneo!sugar!daniels From: daniels@NeoSoft.com (Brad Daniels) Subject: Re: DCE RPC: [out] conformant arrays? Organization: NeoSoft Communications Services -- (713) 684-5900 Date: Thu, 23 Sep 1993 16:49:43 GMT Message-ID: References: <27sbcp$s3r@paperboy.osf.org> In article <27sbcp$s3r@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes: >In daniels@jabberwock.NeoSoft.com (Brad Daniels) writes: >>typedef enum { >> INT_TYPE, FLOAT_TYPE, DOUBLE_TYPE >>} valType; >> >>typedef struct { >> union switch (valType t) { >> case INT_TYPE: int i; >> case FLOAT_TYPE: float f; >> case DOUBLE_TYPE: double d; >> } valUnion; >>} value; >> >>typedef struct { >> int count; >> [size_is(count)] value vals[]; >>} valList; >> >>[idempotent] void getValues([out] valList *vals); > >You were *very* close. :-) You want to do this: > void getValues([in, out] valList *vals); [... Rest of example deleted ...] Thanks for the info, but I still have one concern... Doesn't this approach result in our (uninitialized) array getting sent across the network both ways? I just want to get back a filled-in array. I could end up eating a lot of excess bandwidth and unnecessary conversion time this way. - Brad P.S. The original message was from biles.com, not jabberwock.neosoft.com. My mail software is confused on jabberwock. I can receive mail as daniels@biles.com or daniels@neosoft.com. -- Brad Daniels | "Let others praise ancient times. daniels@neosoft.com | I am glad I was born in these." I don't work for NeoSoft, and | - Ovid (43 B.C. - 17 A.D) don't speak for my employer. |