NAME
AnyEvent::FTP::Server::Role::TransferPrep - Interface for PASV, PORT and REST commands
VERSION
version 0.19
SYNOPSIS
package AnyEvent::FTP::Server::Context::MyContext;
use Moo;
extends 'AnyEvent::FTP::Server::Context';
with 'AnyEvent::FTP::Server::Role::TransferPrep';
DESCRIPTION
This role provides the FTP transfer preparation commands PORT
, PASV
and REST
to your FTP server context. It isn't really useful by itself, and needs a transfer role, like AnyEvent::FTP::Server::Role::TransferFetch or AnyEvent::FTP::Server::Role::TransferPut.
ATTRIBUTES
data
my $connection = $context->data
The data connection prepared from the FTP PASV
or PORT
command. This is an AnyEvent::Handle.
restart_offset
my $offset = $context->restart_offset;
The offset specified in the last FTP REST
command. This should be a positive integer.
METHODS
clear_data
$context->clear_data;
Clears the data
and restart_offset
attributes.
COMMANDS
- PASV
- PORT
- REST
AUTHOR
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Ryo Okamoto
Shlomi Fish
José Joaquín Atria
COPYRIGHT AND LICENSE
This software is copyright (c) 2017-2021 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.