Author image Daisuke Maki
and 1 contributors


ZMQ::CZMQ - Perl-ish wrapper for libczmq


    use ZMQ::CZMQ;
    use ZMQ::Constants ...;


ZMQ::CZMQ is a Perl-ish wrapper for libczmq. It uses ZMQ::LibCZMQ1 for its backend (when/if libczmq 2.x comes out, we may change to use ZMQ::LibCZMQ2 or whatever)

If you want a one-to-one direct mapping to libzmq, then you should be using ZMQ::LibCZMQ1

If you think your code will be used from another program that also uses libczmq, you might want to consider using the ZMQ::LibCZMQ* modules. This is because you can't write "truly" portable code using this high level interface (libczmq's API change rather drastically between versions). Personally, I'd recommend only using this module for your one-shot scripts, and use ZMQ::LibCZMQ* for all other uses. YMMV.


ZMQ::CZMQ::call($funcname, @args)

Calls $funcname via whichever backend loaded by If @args is passed, they are passed directly to the target function.


zclock_*, zfile_*, zhash_*, zlist_*, zloop_*, zmutex_*, zsys_*, and zthread_*

Functions in this area doesn't make sense to be made OO/Perlish. Either use them directly via ZMQ::LibCZMQ*:: or ZMQ::CZMQ::call()

If you don't agree and would like to add them, patches are welcome.


ZMQ::LibCZMQ1, ZMQ::Constants


Daisuke Maki <>


The ZMQ module is

Copyright (C) 2013 by Daisuke Maki

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.