Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: tatsu_s@apollo.hp.com (Seiichi Tatsukawa)
Subject: Re: DCE: Advice for large RPC call
Date: Thu, 18 Aug 1994 18:07:16 GMT	[thread overview]
Message-ID: <Cuqt04.LMt@apollo.hp.com> (raw)
In-Reply-To: JCONNO03.94Aug17131300@pluto.cps.plnin.gmeds.com

In article <JCONNO03.94Aug17131300@pluto.cps.plnin.gmeds.com> jconno03@cps.plnin.gmeds.com (John Connolly) writes:
>I am trying to avoid the limitations of the DCE thread stack.  For
>pipes, we cannot transmit the data as a linked list, which is one of
>the reasons to avoid the use of pipes!

You don't need to use pipes. Just use [transmit_as()] IDL
attribute. For instance,

    const long MAX_LIST_LEN = 100000;

    typedef struct xmit_t
    {
        long last;
        [last_is(last)] long values[MAX_LIST_LEN];
    } xmit_t;

    typedef [transmit_as(xmit_t)] struct list_t
    {
        long value;
        struct list_t *next;
    } list_t;

    long send_it
    (
        [in] handle_t h,
        [in] struct list_t list
    );

Then, you provide these functions:
    void list_t_from_xmit(xmit_t *xmit_object, list_t *object);
    void list_t_to_xmit(list_t *object, xmit_t **xmit_object);
    void list_t_free_inst(list_t *object);
    void list_t_free_xmit(xmit_t *xmit_object);

(See the IDL generated header.)

---  Seiichi

P.S.
  The un/marshaling of the linked list is done by recursively
  calling the pointer un/marshaling routine. Thus, you hit the
  stack limit (deep call stack).
-- 

     + Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@ch.hp.com +
     +    Hewlett-Packard/Open Systems Software Division      +


  parent reply	other threads:[~1994-08-18 18:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-08-11 21:53 DCE: Advice for large RPC call John Connolly
1994-08-16 17:31 ` Seiichi Tatsukawa
1994-08-17 17:13   ` John Connolly
1994-08-17 23:23     ` Jon Mauney
1994-08-18 16:24       ` John Connolly
1994-08-18 18:07     ` Seiichi Tatsukawa [this message]
1994-08-19 19:07     ` Henry Lee
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