[zeromq-dev] Full spec for ZeroMQ protocol over TCP

Pieter Hintjens ph at imatix.com
Sat Apr 30 14:19:03 CEST 2011


Hi All,

I've made an attempt to document ZMTP, the ZeroMQ Message Transfer
Protocol, here: http://rfc.zeromq.org/spec:13/

This is my attempt at a full ABNF grammar:

zmtp        = *connection

connection  = greeting *content
greeting    = anonymous / identity
anonynous   = %0x01 %x00
identity    = length %x00 (%0x01-ff) *OCTET

message     = *more-frame final-frame
more-frame  = length %x01 body
final-frame = length %x00 body
length      = OCTET / (%xFF 8OCTET)
body        = *OCTET

content     = broadcast | addressed | neutral

broadcast   = header message
header      = more-frame

addressed   = envelope message
envelope    = *more-frame delimiter
delimiter   = %0x01 %x01

neutral     = message

In the spec I've stayed away from all 0MQ-implementation specific
terminology such as socket types.

Comments welcome.

-Pieter



More information about the zeromq-dev mailing list