SRS::EPP::Proxy::UA - subprocess-based UserAgent
my $ua = SRS::EPP::Proxy::UA->new; # creates sub-process. $ua->request($req); # off it goes! print "yes" if $ua->busy; # it's busy! sleep 1 until $ua->ready; # do other stuff my $response = $ua->get_response; print "yes" if $ua->waiting; # it's waiting for you!
This class provides non-blocking UserAgent behaviour, by using a slave sub-process to call all the blocking LWP::UserAgent functions to do the retrieval.
This is done because the SRS::EPP::Session class is designed to be a non-blocking system.
LWP::UserAgent, SRS::EPP::Session
Development commissioned by NZ Registry Services, and carried out by Catalyst IT - http://www.catalyst.net.nz/
Copyright 2009, 2010, NZ Registry Services. This module is licensed under the Artistic License v2.0, which permits relicensing under other Free Software licenses.
To install SRS::EPP::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SRS::EPP::Proxy
CPAN shell
perl -MCPAN -e shell install SRS::EPP::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.