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 05:53:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C6E576F.A398E35@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Adasockets storage problem References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 16 Feb 2002 13:53:52 GMT NNTP-Posting-Host: 158.252.122.173 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1013867632 158.252.122.173 (Sat, 16 Feb 2002 05:53:52 PST) NNTP-Posting-Date: Sat, 16 Feb 2002 05:53:52 PST X-Received-Date: Sat, 16 Feb 2002 05:53:52 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:20080 Date: 2002-02-16T13:53:52+00:00 List-Id: Nazgul wrote: > > Hi, > > 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. I take it you're using GNAT on both machines. What does your code look like that you're using to write the string to the socket? And to read it off the socket? Marc A. Criley Consultant Quadrus Corporation www.quadruscorp.com