comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Spawning a subprocess and communicating with it.
Date: 1998/10/06
Date: 1998-10-06T00:00:00+00:00	[thread overview]
Message-ID: <6vdt9q$lpt$1@nnrp1.dejanews.com> (raw)
In-Reply-To: F3740247C2BED111A0AE00805FEA9C92017FFD1E@pwflml02.pwfl.com

In article <F3740247C2BED111A0AE00805FEA9C92017FFD1E@pwflml02.pwfl.com>,
  "Condic, Marin D." <condicma@PWFL.COM> wrote:
> Rick Stikkers <rstikkers@TELIS.ORG> writes:
> >either be done through C routines as we use at my company, or through use
> of
> >C pragmas.  Either way, you are going to have to rely heavily on C code.
> >Although I am not allowed to release source code done for work, I did find

> Are you sure it all has to be done with C routines? I'd think that most of
> this should be simply connecting to OS runtime libraries, which may have an
> interface expressed in C syntax, but ought to be accessible from anything.
> Especially since Ada has such good syntax for connecting to stuff in other
> languages.

I don't think that was excetly what he was saying. But if it is, he's
incorrect. Since they are meant to interface with C code directly, OS
routines are usually imported into Ada programs *as*if* they were C routines.
The only problem with writing your code in Ada is that you will find their
interfaces annoyingly non-Ada like. I suppose you also have to be aware that
OS routines aren't always task-safe.

Again, if you aren't ever going to run these processes on separate processors
I would highly suggest using Unix IPC (shared memory or message queues)
rather than sockets (TCP/IP). IPC is a lot easier to interface to and use. On
the other hand, TCP/IP looks better on a resume'...

--
T.E.D.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




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

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-05  0:00 Spawning a subprocess and communicating with it Condic, Marin D.
1998-10-06  0:00 ` dennison [this message]
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
  -- 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-09  0:00 Condic, Marin D.
1998-10-13  0:00 ` Robert I. Eachus
1998-10-08  0:00 Condic, Marin D.
1998-10-09  0:00 ` alan walkington
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-01  0:00 Condic, Marin D.
1998-10-02  0:00 ` Rick Stikkers
1998-10-02  0:00 ` dennison
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