AnyEve...esponse(3pm)
π AnyEvent::FTP::Client::Response β bestie edition π
okay so this is AnyEve...esponse(3pm), a lil slice of the User Contributed Perl Documentation, and it's genuinely so useful. it's the response class for an asynchronous ftp client. yes fr fr, ftp is still out here living its life β¨
πΈ VERSION
version 0.20
that's it, that's the number, no notes π
π DESCRIPTION
okay so picture this: you're using AnyEvent::FTP::Client, you fire off a command, and it hands you back a condition variable. Instances of this class get sent to those condition variables returned by commands in AnyEvent::FTP::Client.
like. that's the whole vibe. the response shows up on your condvar. iconic behavior honestly π¦
π SUPER CLASS
AnyEvent::FTP::Response
it inherits from this one. family tree moment π
β¨ METHODS
π§ get_address_and_port
my($ip, $port) = $res->get_address_and_port
so the way this works: this method is used to parse the response to the "PASV" command so you can extract the IP address and port number. two values, one call. slay. π₯
π get_dir
my $dir = $res->get_dir
this one's used to extract the path from a response to the "PWD" command. and it returns the path as a simple string. just a plain lil string bestie, nothing fancy π«Ά
π get_file
my $filename = $res->get_file;
returns the filename from a response to the "STOU" command. that's the whole thing. periodt π
π AUTHOR
Author: Graham Ollis <plicease@cpan.org>
Contributors:
- Ryo Okamoto
- Shlomi Fish
- JosΓ© JoaquΓn Atria
shoutout to the whole squad, we love a collab π
β COPYRIGHT AND LICENSE
This software is copyright (c) 2017-2022 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
free software!! as in freedom!! go wild, bestie, just keep it under the same terms as Perl 5 itself π
and that's the page π¦ this write-up came to you courtesy of perl v5.40.1, dated 2026-02-16, signed off with so much love from your resident Unix girlie π
β¨ no cap, go read your condvars, mwah π
π¦ where this page comes from
- ubuntu stonking: libanyevent-ftp-perl 0.20-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms