zeromq/jzmq — pull request #89 by aorzecho (2011-11-15 13:20:32+00:00)
Title: A few changes/additions in higher-level apis.

Hi,

I've been working through the chapter 4 of zguide recently (https://github.com/aorzecho/zguide-2).
Here are the changes I made to jzmq classes, which felt useful while working on the majordomo Java examples.

in short:
* Added ROUTER/DEALER flags and deprecated XREP/XREQ (ZMQ.java) - to be consistent with zmq

* Made ZFrame(byte[]) and ZMsg() constructors public. - the constructors were protected, I found no other way to create instances of ZMsg/ZFrame

* Added a few convinience methods to ZMsg:
ZMsg.dump(Appendable) - dump message for debugging/tracing
Zmsg.addFirst(String)
Zmsg.addFirst(byte[]) |- convenience methods for String/byte[]
Zmsg.addLast(String)
Zmsg.addLast(byte[])

These changes are affecting the API somehow, so let me know what's your view on that (I haven not 'pushed' the zguide examples yet, so I can easily refactor :)

Best Regards,
Arkadiusz