com.sshtools.j2ssh.agent

Class AgentSocketChannel


public class AgentSocketChannel
extends SocketChannel

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

Field Summary

static 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()
String
getChannelType()
protected int
getMaximumPacketSize()
protected int
getMaximumWindowSpace()
protected int
getMinimumWindowSpace()
protected void
onChannelOpen()
protected void
onChannelRequest(String requestType, boolean wantReply, byte[] requestData)

Methods inherited from class com.sshtools.j2ssh.connection.SocketChannel

bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen

Methods inherited from class com.sshtools.j2ssh.connection.Channel

addEventListener, close, finalizeClose, getChannelConfirmationData, getChannelOpenData, getChannelType, getLocalChannelId, getLocalPacketSize, getLocalWindow, getMaximumPacketSize, getMaximumWindowSpace, getMinimumWindowSpace, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen, onChannelRequest, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF

Field Details

AGENT_FORWARDING_CHANNEL

public static final String AGENT_FORWARDING_CHANNEL

Constructor Details

AgentSocketChannel

public AgentSocketChannel(boolean isForwarding)
Creates a new AgentSocketChannel object.
Parameters:
isForwarding -

Method Details

getChannelConfirmationData

public byte[] getChannelConfirmationData()
Overrides:
getChannelConfirmationData in interface Channel
Returns:

getChannelOpenData

public byte[] getChannelOpenData()
Overrides:
getChannelOpenData in interface Channel
Returns:

getChannelType

public String getChannelType()
Overrides:
getChannelType in interface Channel
Returns:

getMaximumPacketSize

protected int getMaximumPacketSize()
Overrides:
getMaximumPacketSize in interface Channel
Returns:

getMaximumWindowSpace

protected int getMaximumWindowSpace()
Overrides:
getMaximumWindowSpace in interface Channel
Returns:

getMinimumWindowSpace

protected int getMinimumWindowSpace()
Overrides:
getMinimumWindowSpace in interface Channel
Returns:

onChannelOpen

protected void onChannelOpen()
            throws InvalidChannelException
Overrides:
onChannelOpen in interface SocketChannel

onChannelRequest

protected void onChannelRequest(String requestType,
                                boolean wantReply,
                                byte[] requestData)
            throws IOException
Overrides:
onChannelRequest in interface Channel
Parameters:
requestType -
wantReply -
requestData -

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