NAME

IO::All::Securftp::iowrap - provides I/O wrapper for better integration of Net::SFTP::Foreign into IO::All

DESCRIPTION

IO::All::Securftp::iowrap is the handler for IO::All for opened sftp connections for reading and writing.

METHODS

new

Extracts user/port from URI, if any - and passes parsed URI to Net::SFTP::Foreign->new together with optional specified new hash in %options:

IO::All::Securftp::iowrap->new($self->name, {
  new => {
    timeout => ...,
  },
  get_content => {
    conversion => ...,
  },
  put_content => {
    atomic => 1,
  }
});

For details regarding the options to new, get_content and put_content see Net::SFTP::Foreign.

getline

Reads a single line from remote file

getlines

Reads all lines from remote file

print

Print given lines to remote file

close

Closes remote connection, flush buffers before when necessary

DESTROY

AUTHOR

Jens Rehsack, <rehsack at cpan.org>

BUGS

Please report any bugs or feature requests to bug-IO-All-Securftp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=IO-All-Securftp. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc IO::All::Securftp

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2015 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

SEE ALSO