AnyEve...ferPrep(3pm)
β¨ NAME β¨
AnyEvent::FTP::Server::Role::TransferPrep β it's the interface bestie, the one for PASV, PORT and REST commands π
(also known by its lil truncated nickname AnyEve...ferPrep(3pm), which is literally how the manual page header shortens it, iykyk)
π VERSION π
version 0.20 β she's at 0.20 and thriving β¨
π¦ SYNOPSIS π¦
okay so the whole vibe is: you're building your own FTP server context, and you just with this role in like it's a friendship bracelet π«Ά
package AnyEvent::FTP::Server::Context::MyContext;
use Moo;
extends 'AnyEvent::FTP::Server::Context';
with 'AnyEvent::FTP::Server::Role::TransferPrep';
πΈ DESCRIPTION πΈ
so this role hands your FTP server context the three transfer prep commands β PORT, PASV and REST. that's it, that's the job π
but fr fr, she is not a solo act. on her own she's giving "girl who showed up to the group project with no slides" β not really useful by itself π. she needs a transfer role to actually do stuff, like AnyEvent::FTP::Server::Role::TransferFetch or AnyEvent::FTP::Server::Role::TransferPut. no cap, they're the besties she needs π
π ATTRIBUTES π
π data
my $connection = $context->data
the data connection that got prepared by the FTP PASV or PORT command β this is an AnyEvent::Handle. the moment you call it, it's her β¨
π restart_offset
my $offset = $context->restart_offset;
the offset that was specified in the last FTP REST command. and listen β this is supposed to be a positive integer, okay? positive. integer. periodt π
π§ METHODS π§
π clear_data
$context->clear_data;
wipes the data and the restart_offset attributes. clean slate energy, out with the old π₯
π COMMANDS π
just so we're all on the same page, here's the trio:
PASVPORTREST
π AUTHOR π
Author: Graham Ollis <plicease@cpan.org>
Contributors, aka the girlies who hopped on the aux π:
- Ryo Okamoto
- Shlomi Fish
- JosΓ© JoaquΓn Atria
β 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. literally free, go off π
okay bestie that's the whole page, you ate π«Ά this was AnyEve...ferPrep(3pm), drafted up by perl v5.40.1 on 2026-02-16 β the footer said so, so it's canon β¨ bye, slay, go write your server π
π¦ 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