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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 14:32:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X (Ada.Sockets) Date: 30 May 2003 22:32:17 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED4A94C.2020501@noplace.com> <3ed4c9a2@news.wineasy.se> <3ED4EB4E.6050108@cogeco.ca> <3ED63B23.5040308@cogeco.ca> <3ed7278b@news.wineasy.se> <3ED79241.2060908@cogeco.ca> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1054330373 6994 62.49.19.209 (30 May 2003 21:32:53 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 30 May 2003 21:32:53 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:38160 Date: 2003-05-30T22:32:17+01:00 List-Id: "Warren W. Gay VE3WWG" writes: > Ada streams and endian issues are also important. Write a program > that uses a socket between two endian different machines and the > endian issue becomes painfully important. This also shows up > in the strangest places. My APQ PostgreSQL package lets you use > Ada streams to write blobs to the database. Well, guess what. If > you have machines of a different endian persuation trying to read > back those blobs written by a different endian persuation (with > Ada streams), then "they ain't right". Right now, I live with that > limitation because there is no elegant way to fix this. The GLADE (GNAT Annex E support) contains an implementation of System.Stream_Attributes, in s-stratt.adb, that magically makes streams endian-independent (uses XDR formatting). You do need to use the gnatmake flag (-a ?) that says "recompile everything".