The ZMQ module for Perl supports both ZMQ2 and ZMQ3. While there's a little work that's needed to do version-sniffing for things like send() and recv(), most of it's generic. It should be pretty easy for what we're doing to use it.
[x] Switch from ZMQ2 to ZMQ
[x] Test under ZMQ2
[ ] Test under ZMQ3
Word on the street is the ZMQx::Class will probably end up being the way to go eventually, as it should support both ZMQ3 and the freshly released ZMQ4, but that can be done later.
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/1406108-migrate-to-zmq-pm?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github).
52 Covers off a lot of discussion about ZMQ3/4. I read through ZMQ.pm at the time and it had taken into consideration the differences (I think the big one is multipart packets from memory). Either way, with #53 I can reliably push packets across both version 3 and 4. So in theory it "Just Works".
The
ZMQ
module for Perl supports both ZMQ2 and ZMQ3. While there's a little work that's needed to do version-sniffing for things like send() and recv(), most of it's generic. It should be pretty easy for what we're doing to use it.Word on the street is the ZMQx::Class will probably end up being the way to go eventually, as it should support both ZMQ3 and the freshly released ZMQ4, but that can be done later.