LWP::Parallel::Protocol - Base class for parallel LWP protocols |
LWP::Parallel::Protocol - Base class for parallel LWP protocols
package LWP::Parallel::Protocol::foo; require LWP::Parallel::Protocol; @ISA=qw(LWP::Parallel::Protocol);
This class is used a the base class for all protocol implementations supported by the LWP::Parallel library. It mirrors the behavior of the original LWP::Parallel library by subclassing from it and adding a few subroutines of its own.
Please see the LWP::Protocol for more information about the usage of this module.
In addition to the inherited methods from LWP::Protocol, The following methods and functions are provided:
Note: This is inherited from LWP::Protocol
$content must be a reference to a scalar holding the content that should be processed.
The return value from receive()
is undef for errors, positive for
non-zero content processed, 0 for forced EOFs, and potentially a
negative command from a user-defined callback function.
Note: We will only use the file or callback argument if $response->is_success(). This avoids sendig content data for redirects and authentization responses to the file or the callback function.
receive()
with a collector callback that
returns a reference to $content the first time and an empty string the
next.
Inspect the LWP/Parallel/Protocol/http.pm file for examples of usage.
Copyright 1997-2004 Marc Langheinrich <marclang@cpan.org> Parts copyright 1995-2004 Gisle Aas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
LWP::Parallel::Protocol - Base class for parallel LWP protocols |