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=0.6 required=5.0 tests=BAYES_00,FROM_WORDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b3cf7df9853d8ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-04 21:15:03 PST From: "Vladimir Bednikov" Newsgroups: comp.lang.ada Subject: Re: ada sockets question Date: Thu, 5 Jul 2001 13:26:45 +0930 Organization: Defence Science and Technology Organisation Message-ID: <9i0p05$ic4$1@fang.dsto.defence.gov.au> References: <9hrtm0$9o6$1@fang.dsto.defence.gov.au> <7wk07.5702$Kf3.48587@www.newsranger.com> NNTP-Posting-Host: n21-162.dsto.defence.gov.au X-Trace: fang.dsto.defence.gov.au 994305861 18820 131.185.21.162 (5 Jul 2001 04:04:21 GMT) X-Complaints-To: postmaster@dsto.defence.gov.au NNTP-Posting-Date: 5 Jul 2001 04:04:21 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news1.optus.net.au!optus!yorrell.saard.net!fang.dsto.defence.gov.au!not-for-mail Xref: archiver1.google.com comp.lang.ada:9450 Date: 2001-07-05T04:04:21+00:00 List-Id: I am trying to transfer 32 lots of 2048 data samples which are in signed short int format. One way i did it was to create a string to hold each individual 2048 samples and send it. This takes 32 seconds to send the 32 blocks, I want it sent in less than one second. I tried to combine all 32 blocks of 2048 samples into one string and send it in one go but got a core dump when I tried to use the stream_listener example to receive the data. Is there a max limit on the size of the packets that I can send? Bye all "Ted Dennison" wrote in message news:7wk07.5702$Kf3.48587@www.newsranger.com... > In article <9hrtm0$9o6$1@fang.dsto.defence.gov.au>, Vladimir Bednikov says... > >I am writing a RT application on an SGI using gnat3.13p. I have > >downloaded the adasockets package version 0.1.13 and am using it, > >but it is very slow. Is there a fast sockets package or do I have to > >call c sockets. > > What is slow about it? Are you certain the "slowness" has anything to do with > the Ada code? I'd have trouble believing that there's anything going on in the > Ada bindings that takes anywhere close to the same amount of time as the network > transmission itself. > > Even if it does something stupid like make an extra copy of the data being > transmitted, that's going to be immensly faster than copying the same data over > the network. I suppose you could get even dumber by using dynamic allocation and > deallocation... > > --- > T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html > home email - mailto:dennison@telepath.com