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-Thread: 103376,7db5fb0599fd4b76 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.icl.net!skynet.be!newspost001!tjb!not-for-mail Date: Tue, 03 May 2005 14:22:42 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: TCP/IP Sockets with GNAT.Sockets References: <1115001752.291144.218410@z14g2000cwz.googlegroups.com> <427618e9$0$7743$ba620e4c@news.skynet.be> <1115045740.838321.306480@g14g2000cwa.googlegroups.com> <42765108$0$22419$ba620e4c@news.skynet.be> <020520051956181888%jaco@neottia.net> <427671d4$0$166$edfadb0f@dread11.news.tele.dk> <1115066261.409185.133090@o13g2000cwo.googlegroups.com> <42769264$0$28069$ba620e4c@news.skynet.be> <1115121845.628611.115440@g14g2000cwa.googlegroups.com> In-Reply-To: <1115121845.628611.115440@g14g2000cwa.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42776cfb$0$24159$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 122502d3.news.skynet.be X-Trace: 1115122939 news.skynet.be 24159 81.246.240.114:4931 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10895 Date: 2005-05-03T14:22:42+02:00 List-Id: fabio de francesco wrote: > I only objected to that statement: "... however If the other end of the > socket is a C-style server it will probely demand somthing like the > following:..." sorry, i misunderstood your statement... > I supposed that Ada and C aren't different in that. I mean that, when a > C program is to read/write a lot of data from/to a disk file or any > other device, it is preferred to read/write large chunks of bytes > altogether: you are right, it is faster. but there are some cases where you can't read chunks, especially when you don't know the size of the data you have to read and you can't read too much data. > What does make you think that? If you refer to my posted code, it was > only a test to get acquainted to GNAT.Sockets. i hope so ! but i've already seen people doing this... -- rien