pssht
latest
SSH server library written in PHP
|
Public Member Functions | |
__construct ($channel, $type, $wantReply) | |
getType () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
wantsReply () | |
![]() | |
__construct ($channel) | |
getChannel () | |
serialize (\fpoirotte\Pssht\Wire\Encoder $encoder) | |
Static Public Member Functions | |
static | getMessageId () |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
![]() | |
static | unserialize (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Static Protected Member Functions | |
static | unserializeSub (\fpoirotte\Pssht\Wire\Decoder $decoder) |
Protected Attributes | |
$type | |
Message type. | |
$wantReply | |
Whether the sender of the message wants a reply or not. | |
![]() | |
$channel | |
Local channel identifier. | |
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base::__construct | ( | $channel, | |
$type, | |||
$wantReply | |||
) |
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). |
Definition at line 36 of file Base.php.
References fpoirotte\Pssht\Messages\CHANNEL\Base\$channel, fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$type, and fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$wantReply.
|
static |
Retrieve the message's identifier.
int | Message identifier. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base::getType | ( | ) |
Get message type.
string | Message type. |
Definition at line 105 of file Base.php.
References fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$type.
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base::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.
|
staticfinal |
Unserialize some data into a message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use to perform unserialization. |
MessageInterface | Unserialized message. |
Implements fpoirotte\Pssht\Messages\MessageInterface.
|
staticprotected |
Unserialize the sub-message.
fpoirotte::Pssht::Wire::Decoder | $decoder | Decoder to use during unserialization. |
array | Array of unserialized data forming the sub-message. |
(PHPMD.UnusedFormalParameter)
fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base::wantsReply | ( | ) |
Flag indicating whether the sender expects a reply.
bool | true if the sender wants a reply, false otherwise. |
Definition at line 117 of file Base.php.
References fpoirotte\Pssht\Messages\CHANNEL\REQUEST\Base\$wantReply.