comp.lang.ada
 help / color / mirror / Atom feed
* RE: socket, pipe
@ 2003-11-05 18:49 Beard, Frank Randolph CIV
  0 siblings, 0 replies; 22+ messages in thread
From: Beard, Frank Randolph CIV @ 2003-11-05 18:49 UTC (permalink / raw)
  To: ghostie, comp.lang.ada

Since the source is available for GNAT, you could always
look at it to see how it's done.

Another option is to use Pascal Obry's Windows 32 POSIX
packages.  You can find them under Software for Reuse
at www.adapower.com (though I can't seem to get to right
now).  And again, if you don't want to use the POSIX
approach.  Just look at the code to see how it's done.
It's in the body of POSIX_Files.  The procedure is called
For_Every_Directory_Entry.

Frank


-----Original Message-----
From: ghostie [mailto:eieio@coastalnet.com]

I should have added that I've found posts indicating how to do a
directory listing using GNAT libraries, but I don't use GNAT.  I use
DACS.



^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: socket, pipe
@ 2003-11-05 19:43 Beard, Frank Randolph CIV
  2003-11-05 21:14 ` tmoran
  0 siblings, 1 reply; 22+ messages in thread
From: Beard, Frank Randolph CIV @ 2003-11-05 19:43 UTC (permalink / raw)
  To: ghostie, comp.lang.ada

Yep, that's a problem.  Most of what you're going to find is,
or has been updated to, Ada 95.  Ada 95 is, for the most part,
backwards compatible with Ada 83, and of course Ada 83 will not
recognize the additions to the language.  Hierarchical library
units were added to Ada 95.  Pragma Import replaced Pragma
Interface.

You could take the Win32 bindings, take only the part you need
from it, retrofit it to Ada 83, and then put it in your own small
binding package.

Frank

-----Original Message-----
From: ghostie [mailto:eieio@coastalnet.com]
Sent: Wednesday, November 05, 2003 13:54
To: comp.lang.ada@ada-france.org
Subject: Re: socket, pipe


Could it be that these solutions require Ada 95, and I only have Ada
83?  For instance, I don't seem to have a "pragma import" that I can
use for a C call. It's not in documentation and I get these errors
when I try to use it:
*** 50W-8: Pragma IMPORT is unknown to the current implementation
*** 34W-8: Pragma IMPORT ignored

I've also found some sample files that I can't even come close to
getting to compile, I wonder if it's the same problem (old version)? 
For instance, my compiler won't even accept this:
with Ada.Text_IO;
_______________________________________________
comp.lang.ada mailing list
comp.lang.ada@ada-france.org
http://www.ada-france.org/mailman/listinfo/comp.lang.ada



^ permalink raw reply	[flat|nested] 22+ messages in thread
* socket, pipe
@ 2003-11-04 14:45 ghostie
  2003-11-04 15:14 ` Ole-Hjalmar Kristensen
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: ghostie @ 2003-11-04 14:45 UTC (permalink / raw)


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

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

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

TIA



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2003-11-05 23:55 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 18:49 socket, pipe Beard, Frank Randolph CIV
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 19:43 Beard, Frank Randolph CIV
2003-11-05 21:14 ` tmoran
2003-11-04 14:45 ghostie
2003-11-04 15:14 ` Ole-Hjalmar Kristensen
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

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