The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

XAS::Lib::SSH::Server - A SSH Subsystem based server

SYNOPSIS

 use XAS::Lib::SSH::Server;

 my $sub = XAS::Lib::SSH::Server->new();

 $sub->run();

DESCRIPTION

The module provides basic I/O for a SSH subsystem. A SSH subsystem reads from stdin, writes to stdout and stderr.

METHODS

new

This initializes the object.

connect

This method redirects the stdin, stdout and stderr file streams to the SSH server.

get

This method reads data from stdin. It uses blocking reads. It will attempt to read all pending data up to EOL.

put($buffer)

This method will write data to stdout. It uses blocking writes. It will attempt to write all the data in the buffer.

$buffer

The buffer to be written.

disconnect

This method closes the connection.

MUTATORS

eol

This method sets the EOL for reads. It defaults to LF - "\012".

SEE ALSO

XAS

AUTHOR

Kevin L. Esteb, <kevin@kesteb.us>

COPYRIGHT AND LICENSE

Copyright (C) 2014 Kevin L. Esteb

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

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