Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: daniels@NeoSoft.com (Brad Daniels)
Subject: Re: DCE RPC: [out] conformant arrays?
Date: Thu, 23 Sep 1993 16:49:43 GMT	[thread overview]
Message-ID: <CDtG2z.73L@sugar.NeoSoft.COM> (raw)
In-Reply-To: 27sbcp$s3r@paperboy.osf.org

In article <27sbcp$s3r@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>In <CDrFDG.Cs@jabberwock.NeoSoft.com> 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.	|


  reply	other threads:[~1993-09-23 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-22 14:39 DCE RPC: [out] conformant arrays? Brad Daniels
1993-09-23 14:21 ` Rich Salz
1993-09-23 16:49   ` Brad Daniels [this message]
1993-09-27 15:20     ` Rich Salz
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