David Robins > Net-SFTP > Net::SFTP::Constants

Download:
Net-SFTP-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  10
Open  2
View/Report Bugs
Source  

NAME ^

Net::SFTP::Constants - Exportable SFTP constants

SYNOPSIS ^

    use Net::SFTP::Constants qw( :tag CONSTANT );
    print "Constant value is ", CONSTANT;

DESCRIPTION ^

Net::SFTP::Constants provides a list of exportable SFTP constants: for SFTP messages and commands, for file-open flags, for status messages, etc. Constants can be exported individually, or in sets identified by tag names.

Net::SFTP::Constants provides values for all of the constants listed in the SFTP protocol version 3 draft; the only thing to note is that the constants are listed with the prefix SSH2 instead of SSH. So, for example, to import the constant for the file-open command, you would write:

    use Net::SFTP::Constants qw( SSH2_FXP_OPEN );

TAGS ^

As mentioned above, constants can either be imported individually or in sets grouped by tag names. The tag names are:

There is one constant that does not fit into any of the tag sets: SSH2_FILEXFER_VERSION, which holds the value of the SFTP protocol implemented by Net::SFTP.

AUTHOR & COPYRIGHTS ^

Please see the Net::SFTP manpage for author, copyright, and license information.

syntax highlighting: