com.sshtools.j2ssh.agent
Class AgentSocketChannel

java.lang.Object
  extended by com.sshtools.j2ssh.connection.Channel
      extended by com.sshtools.j2ssh.connection.SocketChannel
          extended by com.sshtools.j2ssh.agent.AgentSocketChannel

public class AgentSocketChannel
extends SocketChannel

Version:
$Revision: 1.11 $
Author:
$author$

Field Summary
static java.lang.String AGENT_FORWARDING_CHANNEL
           
 
Fields inherited from class com.sshtools.j2ssh.connection.SocketChannel
socket
 
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
 
Constructor Summary
AgentSocketChannel(boolean isForwarding)
          Creates a new AgentSocketChannel object.
 
Method Summary
 byte[] getChannelConfirmationData()
           
 byte[] getChannelOpenData()
           
 java.lang.String getChannelType()
           
protected  int getMaximumPacketSize()
           
protected  int getMaximumWindowSpace()
           
protected  int getMinimumWindowSpace()
           
protected  void onChannelOpen()
           
protected  void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData)
           
 
Methods inherited from class com.sshtools.j2ssh.connection.SocketChannel
bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtData
 
Methods inherited from class com.sshtools.j2ssh.connection.Channel
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AGENT_FORWARDING_CHANNEL

public static final java.lang.String AGENT_FORWARDING_CHANNEL
See Also:
Constant Field Values
Constructor Detail

AgentSocketChannel

public AgentSocketChannel(boolean isForwarding)
Creates a new AgentSocketChannel object.

Parameters:
isForwarding -
Method Detail

getChannelType

public java.lang.String getChannelType()
Specified by:
getChannelType in class Channel
Returns:

onChannelRequest

protected void onChannelRequest(java.lang.String requestType,
                                boolean wantReply,
                                byte[] requestData)
                         throws java.io.IOException
Specified by:
onChannelRequest in class Channel
Throws:
java.io.IOException

getMaximumPacketSize

protected int getMaximumPacketSize()
Specified by:
getMaximumPacketSize in class Channel
Returns:

getChannelOpenData

public byte[] getChannelOpenData()
Specified by:
getChannelOpenData in class Channel
Returns:

getMinimumWindowSpace

protected int getMinimumWindowSpace()
Specified by:
getMinimumWindowSpace in class Channel
Returns:

onChannelOpen

protected void onChannelOpen()
                      throws InvalidChannelException
Overrides:
onChannelOpen in class SocketChannel
Throws:
InvalidChannelException - DOCUMENT ME!
InvalidChannelException

getMaximumWindowSpace

protected int getMaximumWindowSpace()
Specified by:
getMaximumWindowSpace in class Channel
Returns:

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Specified by:
getChannelConfirmationData in class Channel
Returns:


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