74 parent::serialize($encoder);
75 $encoder->encodeUint32($this->reasonCode);
76 $encoder->encodeString($this->reasonMessage);
77 $encoder->encodeString($this->language);
84 $decoder->decodeUint32(),
85 $decoder->decodeUint32(),
86 $decoder->decodeString(),
87 $decoder->decodeString()
$reasonCode
Reason for the failure (as a code).
$channel
Local channel identifier.
$language
Language the message is written into, in RFC 3066 format.
const SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
The requested action was administratively prohibited.
__construct($channel, $reasonCode, $reasonMessage, $language= '')
static unserialize(\fpoirotte\Pssht\Wire\Decoder $decoder)
$reasonMessage
Reason for the failure (as a human-readable description).
const SSH_OPEN_UNKNOWN_CHANNEL_TYPE
The requested channel type is unsupported.
serialize(\fpoirotte\Pssht\Wire\Encoder $encoder)
const SSH_OPEN_CONNECT_FAILED
The connection failed.
const SSH_OPEN_RESOURCE_SHORTAGE
The requested action was aborted due to a resource shortage.