Dear All, I'm currently trying to improve our ZeroMQ implementation on our TCP/IP stack called PicoTCP (All the source files can be found at http://github.com/tass-belgium/picotcp/)
I'm currently trying to figure out all of the ZMTP 2.0 fields in the protocol, but I have noticed that some implementations don't really seem to adhere to the protocol. example: I'm using the pyzmq library and have one publisher and one subscriber. Here's what's happening on byte level: *Sub -> Pub* Signature: FF 00 00 00 00 00 00 00 01 7F ( the signature mentions 8 times 0x00, while the documentation below mentions 8 octets + 1. Could you provide any clarification here? Revision: 01 (= V2.0) Socket type: 02 Further bytes: 0x00 0x00 (=final short? what does the second byte stand for? length of body?) 0x00 0x01 0x01 (= body? What's the function of the body?) *Pub -> Sub* signature: FF 00 00 00 00 00 00 00 01 7F Revision: 01 Socket type: 01 Further bytes: 0x00 0x00 (=final short? nothing in the body?) 0x00 0x0C [Data] (shouldn't the first byte be 0x01 (more short)) When sending larger chunks of data (> 255 bytes), the data part changed into 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0xAB 0xCD (= more-long ? But the start byte is not 0x03) I hope you can clarify some stuff here and there Thanks in advance! Toon Peters *Embedded Software Engineer* *E [email protected] <[email protected]> | W www.tass.be <http://www.tass.be> * Disclaimer | The information transmitted is intended only for use by the addressee and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of it, or the taking of any action in reliance upon this information by persons and/or entities other than the intended recipient is prohibited. If you received this in error, please inform the sender and/or addressee immediately and delete the material. Thank you. Please consider the environment before printing this email
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
