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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b283baa6a69c5e41 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-17 09:11:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Byte order writing to socket stream Date: Fri, 17 May 2002 11:10:43 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1021651864 57264 137.194.161.2 (17 May 2002 16:11:04 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 17 May 2002 16:11:04 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:24285 Date: 2002-05-17T11:10:43-05:00 ----- Original Message ----- From: "The Darkelf" Newsgroups: comp.lang.ada To: Sent: Friday, May 17, 2002 10:18 AM Subject: Byte order writing to socket stream > If so, any suggestion for checking the architecture byte order and > ouputing it in some standard way? > I would use the package body of System.Stream_Attributes that comes with glade (the Annex E implementation of GNAT) (file name is s-stratt.adb) which modifies the stream attributes of the numeric types to use the XDR network format. You can compile this into your GNAT runtime and rebuild it.