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!news.maxwell.syr.edu!newsfeed.icl.net!news-lond.gip.net!news.gsl.net!gip.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: TCP/IP Sockets with GNAT.Sockets Date: Mon, 02 May 2005 20:10:02 +0100 Organization: Pushface Message-ID: 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> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1115061003 18476 62.49.19.209 (2 May 2005 19:10:03 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 2 May 2005 19:10:03 +0000 (UTC) Cancel-Lock: sha1:QCCvIvtVRodWWUfNC8H7T3go5wE= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:10882 Date: 2005-05-02T20:10:02+01:00 List-Id: Poul-Erik Andreasen writes: > BTW my C-couterpart program dosn't seems to have anything against > String'Output( Channel, "Hello" & character'first) ? Well, that _ought_ to send (a) 4 bytes == 1, which is the lower index of the string (b) 4 bytes == 6, which is the upper index of the string (c) the null-terminated string. So it depends what your C-counterpart did with those strange characers. Why do you say Character'First & not ASCII.NUL? If you don't want to include the bounds, use 'Write. There's nothing wrong with streams, but you do have to know exactly what the language requires the compiler to do!