NAME
AnyEvent::FTP::Server::Context - FTP Server client context class
VERSION
version 0.19
METHODS
cmd_quit
$ctx->cmd_quit($con, $req);
Sends a quit command through $con ($req is unused.). Returns the $ctx object.
done
$ctx->done;
TODO: document. Returns the $ctx object.
help_quit
my $quit_str = $ctx->help_quit;
Returns the string "QUIT".
invalid_command
$ctx->invalid_command($con, $req);
Sends an invalid command due to the request $req through $con.
invalid_syntax
$ctx->invalid_syntax($con, $raw);
Sends a command not understood response through $con.
process_queue
$ctx->process_queue;
Processes the request queue.
push_request
$ctx->push_request($con, $req);
Pushes the request to the queue.
ready
my $bool = $ctx->ready;
$ctx->ready($bool)
Gets or sets the "is ready" status, which is a boolean.
ascii_layer
$ctx->ascii_layer;
The PerlIO layer to apply for writing (STOR
, STOU
, APPE
) and reading (RETR
) when operating under ASCII file transfer mode. By default a layer that takes CRLF
and emits native line endings is used for writing and a takes native line endings and emits CRLF
when reading is used.
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.