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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!proxad.net!skynet.be!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 02 May 2005 22:52:01 +0200 From: Adrien Plisson Reply-To: aplisson-news@stochastique.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: 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> In-Reply-To: <1115066261.409185.133090@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <42769264$0$28069$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 5a8cc02c.news.skynet.be X-Trace: 1115066980 news.skynet.be 28069 81.240.43.208:11426 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10887 Date: 2005-05-02T22:52:01+02:00 List-Id: fabio de francesco wrote: > How can you know a priori if a remote service is coded in C or Ada or > everything else? you don't and you should NEVER assume such a thing. but you should know what protocol is to be used between the client and the server. if the protocol is well-defined (that is: in a language independant way) there is no problem in making any software in any language communicate... > Is your code reading character by character? If it is I don't think you > can use it for designing efficient programs. why not ? another question for you: do you use TCP connections to send small packets ? those TCP frames that can achieve more than 50% overhead are really not efficient... > May be your C-counterpart program > contains an algorithm that knows how to do it. or simply ignore those characters which are non-printable, which is the case with small strings... -- rien