comp.lang.ada
 help / color / mirror / Atom feed
From: Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com>
Subject: Re: socket, pipe
Date: 04 Nov 2003 16:14:32 +0100
Date: 2003-11-04T15:14:33+00:00	[thread overview]
Message-ID: <wvbrsml4upwn.fsf@sun.com> (raw)
In-Reply-To: 56a4b188.0311040645.64f825f7@posting.google.com

>>>>> "g" == ghostie  <eieio@coastalnet.com> writes:

    g> I'm quite the Ada newbie.  I'm really a C++ programmer.  But I've been
    g> tasked with making a change to an Ada application that we have, and
    g> would appreciate some help getting started.  Please be patient.

    g> We want our Ada application, while running, to share a lot of binary
    g> information with a different application, this one written in Matlab. 
    g> Each applicaton will produce output data which will be used by the
    g> other application. Both applications will run on Win2K PCs, and they
    g> may or may not be on the same computer.

    g> Is this possible?  What would be the best way to do it?  I've tried
    g> looking up some information but to be honest, I don't understand the
    g> difference between pipes and sockets and Overlapped I/O and whatever
    g> else is available, let alone if it is possible to do these things in
    g> Ada.  All the information I'm finding is either Unix-oriented, or else
    g> it assumes a moderate level of knowledge (which I don't have).
    g> My Ada compiler is DACS 4.7.15d.

    g> TIA

First, you can call any C function from Ada by importing it, so you
can always solve the problem the same way you would approach it in C.

Probably the toughest decision is how to actually share the binary
data between Matlab and Ada (or C). If you can get your applications
to read and write a common format, this can be used for sharing,
either via files or the network.
What about simply writing tha data to file and share the files?

The Distributed Systems Annex can be used for sharing data between Ada
applications running on different computers if you have an
implementation of it for your compiler. Otherwise, you can exchange
your data with sockets or COM/DCOM. The AdaSockets package makes it
relatively easy to build Ada applications which use sockets. Don't
know if it works with your compiler, though.

-- 
Strange attractors stole my wife



  reply	other threads:[~2003-11-04 15:14 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 14:45 socket, pipe ghostie
2003-11-04 15:14 ` Ole-Hjalmar Kristensen [this message]
2003-11-04 15:33 ` Marius Amado Alves
2003-11-04 17:45   ` Warren W. Gay VE3WWG
2003-11-04 18:48 ` John Woodruff
2003-11-05  3:27 ` Steve
2003-11-05  5:24   ` tmoran
2003-11-05  9:44 ` Pascal Obry
2003-11-05 12:31 ` Marin David Condic
2003-11-05 14:50   ` Steve
2003-11-05 15:19   ` Steve
2003-11-05 13:45 ` ghostie
2003-11-05 18:54   ` ghostie
2003-11-05 20:41     ` Robert Spooner
2003-11-05 20:18   ` Martin Dowie
2003-11-05 20:23     ` Martin Dowie
2003-11-05 13:54 ` ghostie
2003-11-05 14:26   ` Marius Amado Alves
2003-11-05 23:55   ` Jacob Sparre Andersen
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 18:49 Beard, Frank Randolph CIV
2003-11-05 19:43 Beard, Frank Randolph CIV
2003-11-05 21:14 ` tmoran
replies disabled

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