Connectors.
| Modifier and Type | Field and Description |
|---|---|
| protected static final int | DEFAULT_MAX_REPLY_LENGTH
Default maximum reply length. |
| private final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractConnector(int
maximum number of payload bytes we're ready to accept maxReplyLength)Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: the maximum message lengthRetrieves the maximum message length this |
| protected void | prepareMessage(byte
SSH agent command the request is for command, byte[] about to be sent, including the 5 spare bytes at the front message)Prepares a message for sending by inserting the command and message length. |
| protected int | Returns: the length as anintSSH agent command the reply is for command, byte[] length as received: number of payload bytes length)Checks the received length of a reply. |
| DEFAULT_MAX_REPLY_LENGTH | back to summary |
|---|---|
| protected static final int DEFAULT_MAX_REPLY_LENGTH Default maximum reply length. 256kB is the OpenSSH limit. | |
| maxReplyLength | back to summary |
|---|---|
| private final int maxReplyLength | |
| MIN_REPLY_LENGTH | back to summary |
|---|---|
| private static final int MIN_REPLY_LENGTH | |
| AbstractConnector | back to summary |
|---|---|
| protected AbstractConnector() Creates a new instance using the | |
| AbstractConnector | back to summary |
|---|---|
| protected AbstractConnector(int maxReplyLength) Creates a new instance.
| |
| getMaximumMessageLength | back to summary |
|---|---|
| protected int getMaximumMessageLength() Retrieves the maximum message length this
| |
| prepareMessage | back to summary |
|---|---|
| protected void prepareMessage(byte command, byte[] message) throws IllegalArgumentException Prepares a message for sending by inserting the command and message length.
| |
| toLength | back to summary |
|---|---|
| protected int toLength(byte command, byte[] length) throws IOException Checks the received length of a reply.
| |