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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,860efd11d835e2ae X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wns14feed!worldnet.att.net!attbi_s52.POSTED!53ab2750!not-for-mail From: Freejack Subject: Re: Communication between Ada and Java through named pipes User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table) Message-ID: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 67.164.245.153 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s52 1103394405 67.164.245.153 (Sat, 18 Dec 2004 18:26:45 GMT) NNTP-Posting-Date: Sat, 18 Dec 2004 18:26:45 GMT Organization: Comcast Online Date: Sat, 18 Dec 2004 18:26:46 GMT Xref: g2news1.google.com comp.lang.ada:7053 Date: 2004-12-18T18:26:46+00:00 List-Id: On Sat, 18 Dec 2004 11:28:41 +0000, Mauro Riva wrote: > I have two applications written in Ada and Java respectively and I want them > to communicate using named pipes but I don't know how to do it. > What I need is simply this : the Ada program has to put a text string into > the pipe and the Java program must read the text, and they must do it in a > non blocking way. > I'm using these programs under windows, does anyone know how to do it? Does > anyone have an example of code? > > Thanks, > Mauro If you're using the GNAT compiler, look under section 8.5.2 of the GNAT Reference Manual. That explains how to handle pipes. In fact, read the whole section 8. Gives a lot of details on handling special files and devices. Freejack