From: "Jean François Martinez" <darkquark99@gmail.com>
Subject: Using Streams in conjunction with Spawn and Gnat.Expect
Date: Mon, 9 Feb 2015 08:38:27 -0800 (PST)
Date: 2015-02-09T08:38:27-08:00 [thread overview]
Message-ID: <8a15f2d4-e27b-4de2-953c-c91499bb0362@googlegroups.com> (raw)
Problem is: I have a program that spawns another (Non_Blocking_Spawn in Gnat.Expect) and communicates with it by sending it variable length strings preceeding 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 been unable to find a way for mapping a Stream on a File_Descriptor.
Any ideas?
Jean François 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.
next reply other threads:[~2015-02-09 16:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-09 16:38 Jean François Martinez [this message]
2015-02-09 18:17 ` Using Streams in conjunction with Spawn and Gnat.Expect Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox