pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct (\fpoirotte\Pssht\Transport $transport,\fpoirotte\Pssht\Connection $connection,\fpoirotte\Pssht\Messages\MessageInterface $message) | |
handle ($msgType,\fpoirotte\Pssht\Wire\Decoder $decoder,\fpoirotte\Pssht\Transport $transport, array &$context) | |
A sample application that acts like an echo server, sending back whatever message it is fed with.
Definition at line 17 of file EchoService.php.
fpoirotte\Pssht\Application\EchoService::handle | ( | $msgType, | |
\fpoirotte\Pssht\Wire\Decoder | $decoder, | ||
\fpoirotte\Pssht\Transport | $transport, | ||
array & | $context | ||
) |
Handle an SSH message.
int | $msgType | Message identifier. |
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder for the message. |
fpoirotte::Pssht::Transport | $transport | Transport layer the message was received from. |
array | $context | Context for the SSH connection. |
Implements fpoirotte\Pssht\Handlers\HandlerInterface.
Definition at line 28 of file EchoService.php.
References fpoirotte\Pssht\Messages\CHANNEL\DATA\unserialize().