ZMQ::Raw - Perl bindings to the ZeroMQ library
version 0.24
use ZMQ::Raw; my $ctx = ZMQ::Raw::Context->new; my $responder = ZMQ::Raw::Socket->new ($ctx, ZMQ::Raw->ZMQ_REP); $responder->bind ('tcp://*:5555'); my $requestor = ZMQ::Raw::Socket->new ($ctx, ZMQ::Raw->ZMQ_REQ); $requestor->connect ('tcp://localhost:5555'); # prints: Request 'hello' $requestor->send ('hello'); print "Request '", $responder->recv(), "'\n"; # prints: Response 'world' $responder->send ('world'); print "Response '", $requestor->recv(), "'\n";
Check if $feature is available.
$feature
Jacques Germishuys <jacquesg@striata.com>
Copyright 2017 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install ZMQ::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ZMQ::Raw
CPAN shell
perl -MCPAN -e shell install ZMQ::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.