pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($channel, $type, $wantReply, $command) | |
getCommand () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
![]() | |
__construct ($channel, $type, $wantReply) | |
getType () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
wantsReply () | |
![]() | |
__construct ($channel) | |
getChannel () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Protected Member Functions | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$command | |
Command to execute. | |
![]() | |
$type | |
Message type. | |
$wantReply | |
Whether the sender of the message wants a reply or not. | |
![]() | |
$channel | |
Local channel identifier. | |
Additional Inherited Members | |
![]() | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
SSH_MSG_CHANNEL_REQUEST message (RFC 4254) for the "exec" request type.
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec::__construct | ( | $channel, | |
$type, | |||
$wantReply, | |||
$command | |||
) |
Construct a new SSH_MSG_CHANNEL_REQUEST message for the "exec" type.
Abstract constructor for a channel-related SSH message.
int | $channel | Local channel identifier. |
string | $type | Message type. |
bool | $wantReply | Indicates whether the sender of this message wants a reply (true) or not (false). |
string | $command | Command to execute. |
Definition at line 33 of file Exec.php.
References fpoirotte\Pssht\Messages\CHANNEL\Base\$channel, fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\$command, fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$type, and fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$wantReply.
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec::getCommand | ( | ) |
Get the command to execute.
string | Command to execute. |
Definition at line 57 of file Exec.php.
References fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec\$command.
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Exec::serialize | ( | \fpoirotte\Pssht\Wire\Encoder | $encoder | ) |
Serialize the message.
fpoirotte::Pssht::Wire::Encoder | $encoder | Encoder to use to perform serialization. |
MessageInterface | Returns this message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.