Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 39402 invoked from network); 17 Sep 2009 07:50:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Sep 2009 07:50:01 -0000 Received: (qmail 53402 invoked by uid 500); 17 Sep 2009 07:50:00 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 53377 invoked by uid 500); 17 Sep 2009 07:50:00 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 53364 invoked by uid 99); 17 Sep 2009 07:50:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 07:50:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gsim@redhat.com designates 209.132.183.28 as permitted sender) Received: from [209.132.183.28] (HELO mx1.redhat.com) (209.132.183.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Sep 2009 07:49:51 +0000 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8H7nTr9031618 for ; Thu, 17 Sep 2009 03:49:29 -0400 Received: from [10.11.8.155] (vpn-8-155.rdu.redhat.com [10.11.8.155]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8H7nQKY012815 for ; Thu, 17 Sep 2009 03:49:27 -0400 Message-ID: <4AB1E991.6090003@redhat.com> Date: Thu, 17 Sep 2009 08:47:29 +0100 From: Gordon Sim Organization: Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom.,Registered in England and Wales under Company Registration No. 3798903,Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3 MIME-Version: 1.0 To: users@qpid.apache.org Subject: Re: remote byte-order References: <4AAFF780.3000002@bellsouth.net> <4AB091F4.6010805@redhat.com> <4AB0D2E6.3040901@bellsouth.net> <4AB0FE55.8040904@redhat.com> <4AB1036B.9080400@bellsouth.net> <4AB1061F.9090009@redhat.com> <4AB12FC3.5010605@bellsouth.net> In-Reply-To: <4AB12FC3.5010605@bellsouth.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-Virus-Checked: Checked by ClamAV on apache.org On 09/16/2009 07:34 PM, Bill Whiting wrote: > I'm replacing other messaging with qpid. I have code for marshalling > and demarshalling data that uses byte-order to know how to handle > integers. I can add a custom property to the message that provides byte > order, but it would be preferrable to have the byte-order of the sender > implemented in the API. I'm not as convinced. It doesn't seem like the sort of information that most applications will want automatically included in their headers which means you would need some mechanism to enable it, and in that case are you really gaining much? In the general case the content type would need to be set by the application anyway, to let the receivers know the format. Appending information on the byte-order to that seems like a reasonable approach to me since it is relevant only to the decoding. > //Bill > > On 09/16/2009 11:37 AM, John Dennis wrote: >> On 09/16/2009 11:25 AM, Bill Whiting wrote: >>> That is exactly the case, I'm thinking of parsing fixed record format >>> data. If the remote system is big-endian (or just different from me) >>> then I want to determine how to handle the data. >> >> Why not just write the content in network byte order? >> > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org