Johannes Plunien > Net-Telnet-Gearman-0.04000 > Net::Telnet::Gearman::Worker

Download:
Net-Telnet-Gearman-0.04000.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Net-Telnet-Gearman-0.05000

NAME ^

Net::Telnet::Gearman::Worker

SYNOPSIS ^

    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'
    # );

METHODS ^

file_descriptor

Returns the file descriptor of this worker.

ip_address

Returns the ip address this worker is connected from.

client_id

Returns the client id of this worker.

functions

Returns an arrayref of functions the worker is registered for.

AUTHOR ^

Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE ^

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.

SEE ALSO ^

syntax highlighting: