exobrain icon indicating copy to clipboard operation
exobrain copied to clipboard

Migrate to ZMQ.pm

Open pjf opened this issue 11 years ago • 3 comments

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! We accept bounties via Bountysource.

pjf avatar Feb 10 '14 01:02 pjf

(Originally brought up in #22 )

pjf avatar Feb 10 '14 01:02 pjf

Leaving this open for now, because while travis is testing on ZMQ3, I don't think we're pushing packets yet.

pjf avatar Feb 10 '14 17:02 pjf

#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".

techman83 avatar Sep 10 '14 12:09 techman83