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,deffccd74319c23d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 11 May 2005 12:14:37 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Sending Variable Length Messages with GNAT.Sockets References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 11 May 2005 12:14:37 -0500 NNTP-Posting-Host: 24.6.127.15 X-Trace: sv3-tynnTGrIEQUERbicj+5VBIgzDT/4CZwqsxJFtJCghwshIilsI2KkYWPogiEvnIgaShvTeN4Ppaz67R8!y11IdUjENPXrYR02muL1TuJyTwvAdJhrer7i4wCWpwXlzlWLb8DSunU11ZU= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:10997 Date: 2005-05-11T12:14:37-05:00 List-Id: > This is why trying to use Ada.Streams "out-of-the-box" to communicate > between Ada applications and those written in other languages is > problematic at best. You pretty much have to write your own stream I/O > routines for each type to be transferred to get the data into an You wouldn't expect to use default Streams to read/write disk files to be exchanged with arbitrary other programs. For just that reason we included a generic capability (like Ada.Sequential_IO's) in Claw.Sockets. Also, a lot of internet stuff is LF-ended text, which needs to be handled more like Text_IO than Streams. It's rather optimistic to expect socket IO to be *simpler* than disk IO.