From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,9a1d3c6343d60f5 X-Google-Attributes: gidf678f,public X-Google-Thread: 111308,9a1d3c6343d60f5 X-Google-Attributes: gid111308,public X-Google-ArrivalTime: 1994-08-18 12:28:11 PST Newsgroups: comp.unix.osf.misc,comp.client-server Path: bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!apollo.hp.com!netnews From: tatsu_s@apollo.hp.com (Seiichi Tatsukawa) Subject: Re: DCE: Advice for large RPC call Sender: usenet@apollo.hp.com (Usenet News) Message-ID: Date: Thu, 18 Aug 1994 18:07:16 GMT References: Nntp-Posting-Host: kumi.ch.apollo.hp.com Organization: Hewlett-Packard Corporation, Chelmsford, MA Xref: bga.com comp.unix.osf.misc:815 comp.client-server:3238 In article 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 +