Andrew Chilton
and 1 contributors

NAME

SRS::EPP::Proxy::UA - subprocess-based UserAgent

SYNOPSIS

 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!

DESCRIPTION

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.

SEE ALSO

LWP::UserAgent, SRS::EPP::Session

AUTHOR AND LICENCE

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.