From: Ole-Hjalmar Kristensen <ole-hjalmar.kristensen@substitute_employer_here.com>
Subject: Re: More details on:--- ADA vs JAVA sockets---
Date: 09 Jan 2004 09:45:21 +0100
Date: 2004-01-09T08:45:21+00:00 [thread overview]
Message-ID: <wvbr7k01a4ta.fsf@sun.com> (raw)
In-Reply-To: btll3l$ga9$1@e3k.asi.ansaldo.it
>>>>> "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
next prev parent reply other threads:[~2004-01-09 8:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-07 8:39 ADA vs JAVA sockets Riccardo
2004-01-07 13:31 ` Duncan Sands
2004-01-07 16:28 ` Jano
2004-01-07 19:44 ` Pascal Obry
2004-01-07 21:11 ` Duncan Sands
2004-01-08 14:31 ` Gnat 3.15p bugs (was: ADA vs JAVA sockets) Jano
2004-01-08 16:24 ` Duncan Sands
2004-01-08 19:14 ` Jano
2004-01-08 20:16 ` tmoran
2004-01-08 20:58 ` Duncan Sands
2004-01-07 14:24 ` ADA vs JAVA sockets Stephen Leake
2004-01-07 15:43 ` Steve
2004-01-07 22:23 ` Frode Tennebø
2004-01-08 7:09 ` David Marceau
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 [this message]
2004-01-09 10:27 ` thanks Riccardo
2004-01-09 13:58 ` thanks Robert Spooner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox