AnyEvent::FTP::Server::UnambiguousResponseEncoder - Server response encoder that encodes responses so they cannot be confused
version 0.16
use AnyEvent::FTP::Server::UnambiguousResponseEncoder; my $encoder = AnyEvent::FTP::Server::UnambiguousResponseEncoder->new; # encode a FTP welcome message my $message = $encoder->encode(220, 'welcome to myftpd');
Objects of this class are used to encode responses which are returned to the client from the server.
my $str = $encoder->encode( $res ); my $str = $encoder->encode( $code, $message );
Returns the encoded message. You can pass in either a AnyEvent::FTP::Response object, or a code message pair.
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Ryo Okamoto
Shlomi Fish
José Joaquín Atria
This software is copyright (c) 2017 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.
To install AnyEvent::FTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::FTP
CPAN shell
perl -MCPAN -e shell install AnyEvent::FTP
For more information on module installation, please visit the detailed CPAN module installation guide.