Net::Telnet::Gearman::Worker
use Net::Telnet::Gearman; my $session = Net::Telnet::Gearman->new( Host => '127.0.0.1', Port => 4730, ); my @workers = $session->workers(); print Dumper @workers # $VAR1 = bless( # { # 'client_id' => '-', # 'file_descriptor' => '1', # 'functions' => [ 'resize_image' ], # 'ip_address' => '127.0.0.1' # }, # 'Net::Telnet::Gearman::Worker' # );
Returns the file descriptor of this worker.
Returns the ip address this worker is connected from.
Returns the client id of this worker.
Returns an arrayref of functions the worker is registered for.
Johannes Plunien <plu@cpan.org>
Copyright 2009 by Johannes Plunien
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Net::Telnet::Gearman
To install Net::Telnet::Gearman, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Telnet::Gearman
CPAN shell
perl -MCPAN -e shell install Net::Telnet::Gearman
For more information on module installation, please visit the detailed CPAN module installation guide.