From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83a56cb8370ebd04 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-08 01:51:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.gamma.ru!Gamma.RU!comstar.ru!teleglobe.net!151.99.250.105.MISMATCH!news.finmeccanica.it!not-for-mail From: "Riccardo" Newsgroups: comp.lang.ada Subject: More details on:--- ADA vs JAVA sockets--- Date: Thu, 8 Jan 2004 09:32:25 +0100 Organization: studenti Message-ID: References: NNTP-Posting-Host: 172.26.101.146 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:4199 Date: 2004-01-08T09:32:25+01:00 List-Id: 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" 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 > >