From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,c4fa1a2cfa0d7dda,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-08-12 10:07:02 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!ncrgw2.ncr.com!ncrhub2!eurohub!ncrsecp!pio From: pio@ncrsecp.Copenhagen.NCR.COM (Per Igel) Newsgroups: comp.unix.osf.misc Subject: DCE questions Keywords: DCE,RPC Message-ID: <2361@ncrsecp.Copenhagen.NCR.COM> Date: 12 Aug 93 15:25:18 GMT Reply-To: pio@ncrsecp.Copenhagen.NCR.COM (Per Igel) Distribution: world Organization: NCR SE-Copenhagen Hi DCE gurus, I'm going to try emulating asynchronous TLI behaviour using DCE RPC - I know it is not meant for that and is really tweaking the concept of RPC. Anyways, here is how the current implementation pretty much looks like: incoming incoming requests output queue requests output queue queue / queue / | / | / +----------v--------------+ +----------v--------------+ | scheduler processing | | scheduler processing | | incoming requests and | | incoming requests and | | sending receiving them | | sending receiving them | |-------------------------| |-------------------------| | TLI layer | | TLI layer | +-------------------------+ +-------------------------+ | | | | | | | | | | ------------------------ network ------------------------- Initially the scheduler process will setup a signal handling routine for SIGPOLL and create a number of TLI endpoint/connections (to the servers it wants to connect to), then reads (blocks on) the incoming request queue (IRQ). When a request is written to the IRQ then the scheduler process reads it, alters the request a little and then send it off on the right TLI file descriptor - asynchronously, so the scheduler process gets back right away and goes up to see if there are any new requests, then process the next one and so on... When some requests popup from the network on one of the TLI file descriptors a SIGPOLL is sent to the scheduler, the signal handling routine will then take the data from the TLI file descriptor process it and write/put it on the output queue. Then return from the signal handling routine and go back and do what it was doing at the time it got the signal. ================ The little pilot project is now to use DCE-RPC purely as a transport (using explicit bindings - no CDS, security and time service) to accomplish the same thing as the TLI layer as in the current implementation. That is take a buffer of bytes and send it asynchronously and acting as a server at the same time receiving incoming buffers. I think the basic questions regarding this pilot project boils down to: - DCE-RPC is extremely synchronous, therefore, the only way to make it "asynchronous" is to create a thread for each RPC call you send of or for each RPC call or each "connection", because you could do something like regarding bindings as having the same function as TLI file descriptors. Or are there asynchronous RPC's in DCE RPC as there is in Sun RPC? - If I want to (and I really do!) keep the scheduler process pretty much as it is, then how do I get it to become both a client and a server (in DCE terms)? Say, I make an RPC routine from machine A, called send_data, which will take a buffer of bytes as input and when the server (which should be the famous scheduler process) gets it, it will "massage" the data a little and then write it to the output queue. - when I make the scheduler process both a client and a server then I need to kick off the "rpc_server_listen" call in a separate thread (for the server part), right? Now that I have a "server"-thread and a several client threads is there a point where my process runs out of threads?? Is 'rpc_c_listen_max_calls_default' that max limit or what? And what if that happens how do I solve this? I'm would appreciate some qualified answers on these questions, thanks in advance, -Per -- Per.Igel@Copenhagen.NCR.COM Direct: +45 38 15 75 34 Switchboard: +45 38 15 75 00 Fax: +45 31 10 23 62 NCR Systems Engineering Copenhagen, Svanevej 14, DK 2400 NV, Denmark