[rabbitmq-discuss] Content payload structure

Matthias Radestock matthias at rabbitmq.com
Thu Aug 15 10:33:46 BST 2013


Nicolai,

On 15/08/13 08:24, Nicolai G. wrote:
> I'm sorry for asking you silly questions. But how it influence on the
> interpretation of binary?

I believe the crucial bit of information you missed is that the fields 
are ordered. As the spec says: "The property flags are an array of bits 
that indicate the presence or absence of each property value *in sequence*."

So, e.g. for basic.publish, content-type is the first field, 
corresponding to bit position 1 in the flags, content-encoding is the 
second field, corresponding to position 2, etc.

> I've looked at other clients implementation. For Ruby I found some tips
> in
> http://rubydoc.info/github/ruby-amqp/amq-protocol/master/AMQ/Protocol/Basic
> <http://rubydoc.info/github/ruby-amqp/amq-protocol/master/AMQ/Protocol/Basic>
> But where these constants came from?
> Are they documented? or it's just peer2peer knowledge?

They are automatically generated from the specification based on the 
above rules.

Matthias.


More information about the rabbitmq-discuss mailing list