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,7e353b2859884173 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-16 23:28:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!dispose.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!zap!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Adasockets storage problem Date: 17 Feb 2002 07:09:45 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: localhost X-NNTP-Posting-Host: pogner.demon.co.uk:158.152.70.98 X-Trace: news.demon.co.uk 1013930864 nnrp-12:9208 NO-IDENT pogner.demon.co.uk:158.152.70.98 X-Complaints-To: abuse@demon.net NNTP-Posting-Date: 17 Feb 2002 07:09:45 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:20090 Date: 2002-02-17T07:09:45+00:00 List-Id: "Nazgul" writes: > I'm using the Adasockets library to have network funcionallity in a > program. The problem is, it works fine if the server and the client > are both running in the same architecture, for example i386, but > when the server runs in a HP-UX and the client in i386, the client > raises and STORAGE_ERROR when receiving a string. > > I suppose it's something about little endian/big endian and using > htons(), htonl(),... like in C, but I don't know how to fix it. It may well be. We've used the GLADE version of System.Stream_Attributes, now in glade-3.14p-src/Garlic/s-stratt.adb - you don't need the full GLADE runtime, just (!) compile this file on its own (with -gnatg) and link with it, at each end of your connection. You may need -I- to get the compilation to actually see this file, and there may be other parts of the RTL that need recompiling (I think they get compiled with inlining on, -gnatn, so there's a dependency on s-stratt.adb that you weren't expecting). I wouldn't be surprised if this use also affected what happens when you use Ada.Streams.Stream_IO.