ZMQ::Raw - Perl bindings to the ZeroMQ library
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.
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.