NAME
ZMQ::AE - Easy construction of asynchronously serviced ZeroMQ sockets
VERSION
version 0.001
SYNOPSIS
use ZMQ::AE;
DESCRIPTION
This is a module establishing a bunch of factory functions for ZMQ::AnyEvent sockets.
METHODS
ZMQ::AE::REQ ($endpoint, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::REQ socket connected to the specified endpoint.
Each time a message is received, the callback routine will be called with all of the parts of the (possibly multi-part) message.
ZMQ::AE::REP ($endpoint, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::REP socket bound to the specified endpoint.
Each time a message is received, the callback routine will be called with all of the parts of the (possibly multi-part) message.
ZMQ::AE::DEALER ($endpoint, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::DEALER socket connected to the specified endpoint.
Each time a message is received, the specified callback will be called with all of the parts of the (possibly multi-part) message.
ZMQ::AE::ROUTER ($endpoint, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::Router socket bound to the specified endpoint.
Each time a message is received, the callback routine will be called with all of the parts of the (possibly multi-part) message.
ZMQ::AE::PUB ($endpoint);
A shorthand method for constructing a ZMQ::AnyEvent::Pub socket bound to the specified endpoint.
ZMQ::AE::SUB ($endpoint, \@topics, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::Sub socket connected to the specified endpoint, and subscribed to the listed topics.
Each time a message is received, the callback routine will be called with all of the parts of the (possibly multi-part) message.
ZMQ::AE::PUSH ($endpoint);
A shorthand method for constructing a ZMQ::AnyEvent::PUSH socket connected to the specified endpoint.
ZMQ::AE::PULL ($endpoint, \&callback->(@message_parts));
A shorthand method for constructing a ZMQ::AnyEvent::PULL socket bound to the specified endpoint.
Each time a message is received, the callback routine will be called with all of the parts of the (possibly multi-part) message.
AUTHOR
Michael Alan Dorman <mdorman@ironicdesign.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ironic Design, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.