| net.schmizz.sshj.connection.Connection |
Known Indirect Subclasses
|
Connection layer of the SSH protocol. Refer to RFC 254.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Attach a
Channel to this connection. | |||||||||||
Attach a
ForwardedChannelOpener to this connection, which will be delegated opening of any CHANNEL_OPEN packets for which it is responsible. | |||||||||||
Forget an attached
ForwardedChannelOpener. | |||||||||||
Forget an attached
Channel. | |||||||||||
Wait for the situation that no channels are attached (e.g., got closed).
| |||||||||||
Send an SSH global request.
| |||||||||||
Send a
SSH_MSG_OPEN_FAILURE for specified Reason and message. | |||||||||||
Set the maximum packet size for the local window this connection recommends to any
Channel's that ask for
it. | |||||||||||
Set the size for the local window this connection recommends to any
Channel's that ask for it. | |||||||||||
Attach a Channel to this connection. A channel must be attached to the connection if it is to receive any
channel-specific data that is received.
| chan | The channel |
|---|
Attach a ForwardedChannelOpener to this connection, which will be delegated opening of any CHANNEL_OPEN packets for which it is responsible.
| opener | An opener for forwarded channels |
|---|
Forget an attached ForwardedChannelOpener.
| opener | The opener to forget |
|---|
| id | Number of the channel to retrieve |
|---|
Channel of specified channel number, or null if no such channel was attached
| chanType | Channel type |
|---|
ForwardedChannelOpener of specified channel-type, or null if no such channel
was attached
Channel's that ask
for it.
Channel's that ask for it. Wait for the situation that no channels are attached (e.g., got closed).
| InterruptedException | if the thread is interrupted |
|---|
Send an SSH global request.
| name | Request name |
|---|---|
| wantReply | Whether a reply is requested |
| specifics | SSHPacket containing fields specific to the request |
Promise for the reply data (in case wantReply is true) which
allows waiting on the reply, or null if a reply is not requested.| TransportException | if there is an error sending the request |
|---|
Send a SSH_MSG_OPEN_FAILURE for specified Reason and message.
| recipient | Number of the recipient channel |
|---|---|
| reason | A reason for the failure |
| message | An explanatory message |
| TransportException | if there is a transport-layer error |
|---|
Set the maximum packet size for the local window this connection recommends to any Channel's that ask for
it.
| maxPacketSize | Maximum packet size in bytes |
|---|
Set the size for the local window this connection recommends to any Channel's that ask for it.
| windowSize | Window size in bytes |
|---|