|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sshtools.j2ssh.transport.SshMessage | +--com.sshtools.j2ssh.connection.SshMsgChannelOpenConfirmation
Implements the SSH_MSG_CHANNEL_OPEN_CONFIRMATION message.
Field Summary | |
protected static int |
SSH_MSG_CHANNEL_OPEN_CONFIRMATION
The message id |
Constructor Summary | |
SshMsgChannelOpenConfirmation()
Constructor for the SshMsgChannelOpenConfirmation object |
|
SshMsgChannelOpenConfirmation(long recipientChannel,
long senderChannel,
long initialWindowSize,
long maximumPacketSize,
byte[] channelData)
Constructor for the SshMsgChannelOpenConfirmation object |
Method Summary | |
protected void |
constructByteArray(ByteArrayWriter baw)
Abstract method implementation to construct a byte array containing the message |
protected void |
constructMessage(ByteArrayReader bar)
Abstract method implementation to construct the message from a byte array |
byte[] |
getChannelData()
Gets the channel data |
long |
getInitialWindowSize()
Gets the initial window size |
long |
getMaximumPacketSize()
Gets the maximum packet size |
java.lang.String |
getMessageName()
Gets the message name for debugging |
long |
getRecipientChannel()
Gets the recipient channel id |
long |
getSenderChannel()
Gets the sender channel id |
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage |
fromByteArray, getMessageId, toByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int SSH_MSG_CHANNEL_OPEN_CONFIRMATION
Constructor Detail |
public SshMsgChannelOpenConfirmation(long recipientChannel, long senderChannel, long initialWindowSize, long maximumPacketSize, byte[] channelData)
recipientChannel
- The recipient channel idsenderChannel
- The senders channel idinitialWindowSize
- The initial data window spacemaximumPacketSize
- The maximum packet sizechannelData
- The channel datapublic SshMsgChannelOpenConfirmation()
Method Detail |
public java.lang.String getMessageName()
getMessageName
in class SshMessage
public long getRecipientChannel()
public long getSenderChannel()
public long getInitialWindowSize()
public long getMaximumPacketSize()
public byte[] getChannelData()
protected void constructMessage(ByteArrayReader bar) throws InvalidMessageException
constructMessage
in class SshMessage
bar
- The byte array being read
InvalidMessageException
- Thrown if the data cannot be readprotected void constructByteArray(ByteArrayWriter baw) throws InvalidMessageException
constructByteArray
in class SshMessage
baw
- The byte
array being written
InvalidMessageException
- Description of the Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |