* Thanks
@ 1987-06-05 9:29 A-PIRARD
0 siblings, 0 replies; 7+ messages in thread
From: A-PIRARD @ 1987-06-05 9:29 UTC (permalink / raw)
I received so many answers to my IBM 370 VM/CMS query it is easier
to thank through the net.
Ada people are nice people...
Greetings from Belgium.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Ada and Assembler
@ 2002-03-31 13:10 Henrik Quintel
2002-04-01 15:13 ` Thanks Henrik Quintel
0 siblings, 1 reply; 7+ messages in thread
From: Henrik Quintel @ 2002-03-31 13:10 UTC (permalink / raw)
Dear all,
is it possible to link an external assembler file to an Ada program and to
call an assembler operation from an Ada program?
If yes, please let me know how. Perhaps it is also possible to include
assembler code direct in the Ada Code? I have searched in the AARM but I
haven't found anything that has something to do with interfacing to
assembler code. So it would be very friendly if someon ecan give me a hint
for this problem.
Thanks in adavance.
Yours Henrik
^ permalink raw reply [flat|nested] 7+ messages in thread
* More details on:--- ADA vs JAVA sockets---
@ 2004-01-08 8:32 Riccardo
2004-01-08 20:16 ` tmoran
0 siblings, 1 reply; 7+ messages in thread
From: Riccardo @ 2004-01-08 8:32 UTC (permalink / raw)
OK,
The possibility of loss due to UDP (I believe) is not the case (moreover we
had many other applications made only in C (C++) and ADA working correctely
for the same purpose..):
-- the connection is exactely point to point and so (!?!?!?) no
packages should be lost in different directions.
The idea that I had about, is that maybe the OS queue for UDP is too small
for the quantities of data we are sending and receiving.
It is possible to set it by g-sockets or in another way????
The fact that the problems come always at the same point of the execution
(once when ADA program sends and once when JAVA program does it) should
suggest something different!??!?!?!?!
One try was to make an ADA to ADA and JAVA to JAVA communication only, and
the programs seems, in this case, to work fine.
g-socket is really full of bug!? What Sould I use instead?
Thanks to everybody,
Riccardo
"Riccardo" <kk@kk.com> ha scritto nel messaggio
news:btggi3$evu$1@e3k.asi.ansaldo.it...
> Hi!
> I'm trying to put together two applications written respectively in ADA
and
> in JAVA.
>
> Each one has its own socket mechanism (in ADA I use G N A T . S O C K E T
S
> ver. 1.27 and in JAVA the standard sockets: JAVA.net).
>
> Using UDP protocol on a direct connection (no other machines in between)
> when I have big quantities of data it appends that some data get lost.
>
> Introducing some delays (in both directions: either receiving in ADA or
> JAVA) the problem seems to be solved.
>
>
> Is there someone that found the same difficulty?
>
> Can I say thet JAVA brings such kind of problems?
> (the same program in ADA works fine with an application written in C++)
>
> Thanks!
>
> Riccardo
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: More details on:--- ADA vs JAVA sockets---
2004-01-08 8:32 More details on:--- ADA vs JAVA sockets--- Riccardo
@ 2004-01-08 20:16 ` tmoran
2004-01-09 7:27 ` Riccardo
0 siblings, 1 reply; 7+ messages in thread
From: tmoran @ 2004-01-08 20:16 UTC (permalink / raw)
>The possibility of loss due to UDP (I believe) is not the case ...
An easy test would be to insert delays to artificially slow down the
transmitting side.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: More details on:--- ADA vs JAVA sockets---
2004-01-08 20:16 ` tmoran
@ 2004-01-09 7:27 ` Riccardo
2004-01-09 8:45 ` Ole-Hjalmar Kristensen
0 siblings, 1 reply; 7+ messages in thread
From: Riccardo @ 2004-01-09 7:27 UTC (permalink / raw)
<tmoran@acm.org> ha scritto nel messaggio
news:qUiLb.782498$Tr4.2238587@attbi_s03...
> >The possibility of loss due to UDP (I believe) is not the case ...
> An easy test would be to insert delays to artificially slow down the
> transmitting side.
Yes, I tried it and depending on what I do in the receiving phase, some
times I miss messages:
-- when I try to print them directly on the screen
-- when I redirect the output on a file
(both operations time consuming that really delay the receiver operations)
Also in those cases, introducing delays, the problem seems to be solved..
May I set (as in UNIX SYSTEM V) , although I use SUN SOLARIS 5.8-SPARK, the
OS message queue lenght and the message size (in bytes) for the socket
communications?
The introduction of a sincronization mechanism made by a buffer queue
doesn't help in any way.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: More details on:--- ADA vs JAVA sockets---
2004-01-09 7:27 ` Riccardo
@ 2004-01-09 8:45 ` Ole-Hjalmar Kristensen
2004-01-09 10:27 ` thanks Riccardo
0 siblings, 1 reply; 7+ messages in thread
From: Ole-Hjalmar Kristensen @ 2004-01-09 8:45 UTC (permalink / raw)
>>>>> "R" == Riccardo <kk@kk.com> writes:
R> <tmoran@acm.org> ha scritto nel messaggio
R> news:qUiLb.782498$Tr4.2238587@attbi_s03...
>> >The possibility of loss due to UDP (I believe) is not the case ...
>> An easy test would be to insert delays to artificially slow down the
>> transmitting side.
R> Yes, I tried it and depending on what I do in the receiving phase, some
R> times I miss messages:
R> -- when I try to print them directly on the screen
R> -- when I redirect the output on a file
R> (both operations time consuming that really delay the receiver operations)
R> Also in those cases, introducing delays, the problem seems to be solved..
R> May I set (as in UNIX SYSTEM V) , although I use SUN SOLARIS 5.8-SPARK, the
R> OS message queue lenght and the message size (in bytes) for the socket
R> communications?
No. UDP messages may be lost no matter what you do, that's the nature
of the beast. If you want 'reliable' communication, use TCP with your
sockets, or implement a retransmission scheme yourself.
pragma(RANT MODE ON)
(Reliable communication protocols do not really exist, all you get is
a guarantee that if the message is not delivered, you will get a
notice, so if you want application-level reliability, you, have to be
prepared to retry in some way. Going to a transactional message system
does help a little, but then transactions may fail, so you have to
retry here as well...)
pragma(RANT MODE OFF)
R> The introduction of a sincronization mechanism made by a buffer queue
R> doesn't help in any way.
--
This page intentionally left blank
^ permalink raw reply [flat|nested] 7+ messages in thread
* thanks
2004-01-09 8:45 ` Ole-Hjalmar Kristensen
@ 2004-01-09 10:27 ` Riccardo
2004-01-09 13:58 ` thanks Robert Spooner
0 siblings, 1 reply; 7+ messages in thread
From: Riccardo @ 2004-01-09 10:27 UTC (permalink / raw)
Thanks to everybody!
I'll consider all these considerations in arranging a new solution.
Riccardo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: thanks
2004-01-09 10:27 ` thanks Riccardo
@ 2004-01-09 13:58 ` Robert Spooner
0 siblings, 0 replies; 7+ messages in thread
From: Robert Spooner @ 2004-01-09 13:58 UTC (permalink / raw)
Riccardo,
If you want to use TCP/IP but make it look like a (reliable) UDP/IP
protocol at a higher level, one way to do it is to layer a record
structure on top of TCP that sends size in bytes as a fixed length
preamble of every message. You read the size, and then loop until you
have read the correct number of bytes for the entire message.
Another way to do it is by using streams.
Regards,
Bob
Riccardo wrote:
> Thanks to everybody!
> I'll consider all these considerations in arranging a new solution.
>
> Riccardo
>
>
>
>
--
Robert L. Spooner
Registered Professional Engineer
Associate Research Engineer
Intelligent Control Systems Department
Applied Research Laboratory Phone: (814) 863-4120
The Pennsylvania State University FAX: (814) 863-7841
P. O. Box 30
State College, PA 16804-0030 rls19@psu.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Thanks
@ 2004-09-19 16:51 Gwynnnn
2004-09-19 17:30 ` Thanks stephane richard
2004-09-19 18:00 ` Thanks Jeffrey Carter
0 siblings, 2 replies; 7+ messages in thread
From: Gwynnnn @ 2004-09-19 16:51 UTC (permalink / raw)
Hi,
Thanks for your help.
I have now figured out how to get it to recognise more than one
directory (separated by spaces) but I cannot yet figure out how to get it
to recognise directory names with spaces in them. Is it possible?
Best wishes
Gwynnnn
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Thanks
2004-09-19 16:51 Thanks Gwynnnn
@ 2004-09-19 17:30 ` stephane richard
2004-09-19 18:00 ` Thanks Jeffrey Carter
1 sibling, 0 replies; 7+ messages in thread
From: stephane richard @ 2004-09-19 17:30 UTC (permalink / raw)
Only trick I can suggest for that is perhaps to try putting the path in
quotes?
such as:
"c:\Program Files\unitfiles.ads"
no garantees, it's a trick I use for command line parameters for windows
apps...might not work in your case :-).
Stephane Richard
"Ada World" webmaster
http://www.adaworld.com
"Gwynnnn" <gwynn@lions-pride.demon.co.uk> wrote in message
news:cikder$lgl$1$830fa79f@news.demon.co.uk...
> Hi,
>
> Thanks for your help.
>
> I have now figured out how to get it to recognise more than one
> directory (separated by spaces) but I cannot yet figure out how to get it
> to recognise directory names with spaces in them. Is it possible?
>
> Best wishes
>
> Gwynnnn
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Thanks
2004-09-19 16:51 Thanks Gwynnnn
2004-09-19 17:30 ` Thanks stephane richard
@ 2004-09-19 18:00 ` Jeffrey Carter
1 sibling, 0 replies; 7+ messages in thread
From: Jeffrey Carter @ 2004-09-19 18:00 UTC (permalink / raw)
Gwynnnn wrote:
> I have now figured out how to get it to recognise more than one
> directory (separated by spaces) but I cannot yet figure out how to get it
> to recognise directory names with spaces in them. Is it possible?
You can enclose them in quotes, or you can use the DOS 8.3 name.
--
Jeff Carter
"I was hobbling along, minding my own business, all of a
sudden, up he comes, cures me! One minute I'm a leper with
a trade, next minute my livelihood's gone! Not so much as a
'by your leave!' You're cured, mate. Bloody do-gooder!"
Monty Python's Life of Brian
76
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-09-19 18:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-06-05 9:29 Thanks A-PIRARD
-- strict thread matches above, loose matches on Subject: below --
2002-03-31 13:10 Ada and Assembler Henrik Quintel
2002-04-01 15:13 ` Thanks Henrik Quintel
2004-01-08 8:32 More details on:--- ADA vs JAVA sockets--- Riccardo
2004-01-08 20:16 ` tmoran
2004-01-09 7:27 ` Riccardo
2004-01-09 8:45 ` Ole-Hjalmar Kristensen
2004-01-09 10:27 ` thanks Riccardo
2004-01-09 13:58 ` thanks Robert Spooner
2004-09-19 16:51 Thanks Gwynnnn
2004-09-19 17:30 ` Thanks stephane richard
2004-09-19 18:00 ` Thanks Jeffrey Carter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox