[zeromq-dev] Wire-format spec for zmq 3.2

KIU Shueng Chuan nixchuan at gmail.com
Wed Oct 24 03:43:29 CEST 2012


I am curious as to why the backwards interoperability handshake works.
It seems that a 1.0 peer ought to interpret
"%xFF 7%x00 %x01 %x7F"
as a frame with MORE bit set?

# this works
sock = socket.create_connection(('127.0.0.1', 5555))
sock.send('\xFF' + 7*'\x00' + '\x01\x7F')
sock.send('\x06\x00HELLO')

# this works too
sock = socket.create_connection(('127.0.0.1', 5555))
sock.send('\xFF' + 7*'\x00' + '\x01\x7E')
sock.send('\x06\x00WORLD')



More information about the zeromq-dev mailing list