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 used for testing purposes.
This application can only be used as a direct command. It expects a number to be given as the command and will display a message with that number. It will also exit with that number as the exit status.
Definition at line 23 of file TestService.php.
fpoirotte\Pssht\Application\TestService::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 80 of file TestService.php.