com.sshtools.j2ssh.connection

Class SshMsgChannelOpen


public class SshMsgChannelOpen
extends SshMessage

Version:
$Revision: 1.20 $
Author:
$author$

Field Summary

protected static int
SSH_MSG_CHANNEL_OPEN

Constructor Summary

SshMsgChannelOpen()
Creates a new SshMsgChannelOpen object.
SshMsgChannelOpen(String channelType, long senderChannelId, long initialWindowSize, long maximumPacketSize, byte[] channelData)
Creates a new SshMsgChannelOpen object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
byte[]
getChannelData()
String
getChannelType()
long
getInitialWindowSize()
long
getMaximumPacketSize()
String
getMessageName()
long
getSenderChannelId()

Methods inherited from class com.sshtools.j2ssh.transport.SshMessage

constructByteArray, constructMessage, fromByteArray, getMessageId, getMessageId, getMessageName, toByteArray

Field Details

SSH_MSG_CHANNEL_OPEN

protected static final int SSH_MSG_CHANNEL_OPEN
Field Value:
90

Constructor Details

SshMsgChannelOpen

public SshMsgChannelOpen()
Creates a new SshMsgChannelOpen object.

SshMsgChannelOpen

public SshMsgChannelOpen(String channelType,
                         long senderChannelId,
                         long initialWindowSize,
                         long maximumPacketSize,
                         byte[] channelData)
Creates a new SshMsgChannelOpen object.
Parameters:
channelType -
senderChannelId -
initialWindowSize -
maximumPacketSize -
channelData -

Method Details

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException
Overrides:
constructByteArray in interface SshMessage
Parameters:
baw -

constructMessage

protected void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException
Overrides:
constructMessage in interface SshMessage
Parameters:
bar -

getChannelData

public byte[] getChannelData()
Returns:

getChannelType

public String getChannelType()
Returns:

getInitialWindowSize

public long getInitialWindowSize()
Returns:

getMaximumPacketSize

public long getMaximumPacketSize()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SshMessage
Returns:

getSenderChannelId

public long getSenderChannelId()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.