IPC::AnyEvent::Gearman - IPC through gearmand.
version 0.001
use AnyEvent; use IPC::AnyEvent::Gearman; #receive my $recv = IPC::AnyEvent::Gearman->new(servers=>['localhost:9999']); $recv->on_receive(sub{ my $msg = shift; print "received msg : $data\n"; return "OK";#result }); $recv->listen(); my $cv = AE::cv; $cv->recv; #send my $send = IPC::AnyEvent::Gearman->new(server=>['localhost:9999']); $send->pid(1102); my $result = $send->send("TEST DATA");
my $send = IPC::AnyEvent::Gearman->new(pid=>1223);
KHS, HyeonSeung Kim <sng2nara@hanmail.net>
This software is copyright (c) 2012 by HyeonSeung Kim.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install IPC::AnyEvent::Gearman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IPC::AnyEvent::Gearman
CPAN shell
perl -MCPAN -e shell install IPC::AnyEvent::Gearman
For more information on module installation, please visit the detailed CPAN module installation guide.