From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.63.230 with SMTP id a66mr16941417yhd.51.1423499907822; Mon, 09 Feb 2015 08:38:27 -0800 (PST) X-Received: by 10.140.34.195 with SMTP id l61mr181375qgl.32.1423499907808; Mon, 09 Feb 2015 08:38:27 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!newspeer1.nac.net!border2.nntp.dca1.giganews.com!nntp.giganews.com!i13no58830qae.0!news-out.google.com!q4ni11080qan.0!nntp.google.com!i13no58825qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 9 Feb 2015 08:38:27 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=212.99.10.162; posting-account=ku4DIwoAAACRt0A2H-srh5aOk_YodLAH NNTP-Posting-Host: 212.99.10.162 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8a15f2d4-e27b-4de2-953c-c91499bb0362@googlegroups.com> Subject: Using Streams in conjunction with Spawn and Gnat.Expect From: =?ISO-8859-1?Q?Jean_Fran=E7ois_Martinez?= Injection-Date: Mon, 09 Feb 2015 16:38:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:24927 Date: 2015-02-09T08:38:27-08:00 List-Id: Problem is: I have a program that spawns another (Non_Blocking_Spawn in Gn= at.Expect) and communicates with it by sending it variable length strings p= receeding by a token telling the son what to do with it. I would like they= did it by exchanging objects through the 'Output and 'Input atribute. Problem is: Non_Blocking_Spawn works with Process_Descriptors from them you= can get a File_Descriptor (from Gnat.Os_Lib.File_Descriptor) but I have be= en unable to find a way for mapping a Stream on a File_Descriptor. Any ideas? Jean Fran=E7ois Martinez PS: I could resort to forget about Objects and Streams and just parse input= in son, in fact that is what I did in a previous version but that is sooo = crude and unelegant. That is why I would like to use Objects and Streamas.