NAME

ZMQ::CZMQ - Perl-ish wrapper for libczmq

SYNOPSIS

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

DESCRIPTION

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.

FUNCTIONS

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

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

UNSUPPORTED

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.

SEE ALSO

http://zeromq.org

http://github.com/lestrrat/p5-ZMQ

ZMQ::LibCZMQ1, ZMQ::Constants

AUTHOR

Daisuke Maki <daisuke@endeworks.jp>

COPYRIGHT AND LICENSE

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.