I’ve released htbaapub.zmq 0.03, a wrapper for ZeroMQ. This release fixes data corruption when sending messages. The corruption was caused by BlitzMax collection String data a bit too soon. This was a tough one to find as garbage collectors are hard to predict.
As of now htbaapub.zmq also contains several unit tests to make sure everything works as expected. It doesn’t have full coverage, but I’ll improve this in the future. In case anyone is interested, the test module used is bah.maxunit.
You can install this version with maximus, download it or fetch the sources from GitHub.
This is just a short announcement on my Blog to let people know I’ve been busy wrapping ZeroMQ (or ZMQ) for BlitzMax. The result of this a new module called htbaapub.zmq. It’s available from the Maximus website, meaning you can install it using Maximus. If you rather fetch the Git repository that’s possible as well.
The module is still very much a Work In Progress. Most of ZMQ’s functions are available from BlitzMax and both Windows and Linux are supported. It should work fine on a Mac as well, but I’m unable to verify since I don’t actually own one.
A couple of examples are included as well. Have fun playing with ZMQ and if you encounter any bugs, please report them. I’ll then be able to look into fixing them.