POE::Component::Client::FTPPOE::Component::Client::FTP is a Perl module that implements an FTP client POE Component. | |
Download |
POE::Component::Client::FTP Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Michael Ching
- Publisher web site:
- http://search.cpan.org/~bingos/POE-Component-Client-FTP-0.10/lib/POE/Component/Client/FTP.pm
POE::Component::Client::FTP Tags
POE::Component::Client::FTP Description
POE::Component::Client::FTP is a Perl module that implements an FTP client POE Component. POE::Component::Client::FTP is a Perl module that implements an FTP client POE Component.SYNOPSISuse POE::Component::Client::FTP;POE::Component::Client::FTP->spawn ( Alias => 'ftp', Username => 'test', Password => 'test', RemoteAddr => 'localhost', Events => );# we are authenticated sub authenticated { $poe_kernel->post('ftp', 'command', 'args'); }# data connection is ready for data sub put_connected { my ($status, $line, $param) = @_; open FILE, "/etc/passwd" or die $!; $poe_kernel->post('ftp', 'put_data', $_) while (); close FILE; $poe_kernel->post('ftp', 'put_close');}# something bad happened sub put_error { my ($error, $param) = @_; warn "ERROR: '$error' occured while trying to STOR '$param'";}# data connection closed sub put_closed { my ($param) = @_; }# file on the way... sub get_connected { my ($filename) = @_; }# getting data from the file... sub get_data { my ($data, $filename) = @_;}# and its done sub get_done { my ($filename) = @_; }# response to a size command sub size { my ($code, $size, $filename) = @_; print "$filename was $size";}$poe_kernel->run(); Requirements: · Perl
POE::Component::Client::FTP Related Software