comp.lang.ada
 help / color / mirror / Atom feed
From: "alan walkington" <walky@netmagic.net>
Subject: Re: Spawning a subprocess and communicating with it.
Date: 1998/10/09
Date: 1998-10-09T00:00:00+00:00	[thread overview]
Message-ID: <6vlsr3$t7q$1@usenet41.supernews.com> (raw)
In-Reply-To: F3740247C2BED111A0AE00805FEA9C92017FFD2F@pwflml02.pwfl.com

Marin:

Alas, you will have to give up the pipe....
I don't believe the simple soulution will work across the network.  I think
pipes will only work if you
are on the same machine.

It is indeed time to look at sockets, or perhaps RPC's.

If you want the code to be portable to other than GNAT compilers, you should
probably look at the posix library.

Isn't it strange how the simplest of projects grows more and more convoluted
over time?

Alan Walkington
walky@netmagic.net

Condic, Marin D. wrote in message ...
>Thanks for the reply. Looking at the GNAT code in the GNAT.OS_Lib package,
>it's "Non_Blocking_Spawn" function degenerates to a C call after massaging
>some parameters. Someone sent me an example of how to do this with Unix
>calls, but then you've got something that can't automatically correct
itself
>if moved to the PC.
>
>Unfortunately, I do have to have two separate processes. The problem is
that
>the client and the server have to be separate programs since the server
>could be either another process running on the workstation, or on a
>different workstation, or an embedded application in my engine control
>computer. I need to design the connection so that the same program - or one
>with slight variations - can talk to the simulated embedded machine or the
>real embedded machine. I figure that breaks down into processes and pipes
at
>the workstation end.







  reply	other threads:[~1998-10-09  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-08  0:00 Spawning a subprocess and communicating with it Condic, Marin D.
1998-10-09  0:00 ` alan walkington [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-13  0:00 Condic, Marin D.
1998-10-13  0:00 ` Scott Ingram
1998-10-12  0:00 Condic, Marin D.
1998-10-13  0:00 ` Pascal Obry
1998-10-09  0:00 Condic, Marin D.
1998-10-13  0:00 ` Robert I. Eachus
1998-10-09  0:00 Condic, Marin D.
1998-10-07  0:00 Condic, Marin D.
1998-10-08  0:00 ` dennison
1998-10-08  0:00 ` Jerry van Dijk
1998-10-08  0:00 ` dennison
1998-10-05  0:00 Condic, Marin D.
1998-10-06  0:00 ` dennison
1998-10-06  0:00 ` Robert L. Spooner
1998-10-07  0:00 ` John McCabe
1998-10-08  0:00   ` dennison
1998-10-07  0:00 ` Jerry van Dijk
1998-10-01  0:00 Condic, Marin D.
1998-10-02  0:00 ` dennison
1998-10-02  0:00 ` Rick Stikkers
1998-10-05  0:00 ` John McCabe
1998-10-12  0:00 ` Tom Moran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox