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.
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.