NAME
AnyEvent::FTP::Server::Context - FTP Server client context class
VERSION
version 0.08
METHODS
$ctx->cmd_quit($con, $req)
Sends a quit command through $con ($req is unused.). Returns the $ctx object.
$ctx->done()
TODO: document. Returns the $ctx object.
my $quit_str = $ctx->help_quit()
Returns the string "QUIT".
$ctx->invalid_command($con, $req)
Sends an invalid command due to the request $req through $con.
$ctx->invalid_syntax($con, $raw)
Sends a command not understood response through $con.
$ctx->process_queue()
Processes the request queue.
$ctx->push_request($con, $req)
Pushes the request to the queue.
my $bool = $ctx->ready([$new_ready])
Gets or sets the "is ready" status, which is a boolean.
$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
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 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.