com.sshtools.j2ssh.connection

Class SocketChannel

Known Direct Subclasses:
AgentSocketChannel, ForwardingSocketChannel

public abstract class SocketChannel
extends Channel

Version:
$Revision: 1.14 $
Author:
$author$

Field Summary

protected Socket
socket

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

connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state

Method Summary

void
bindSocket(Socket socket)
protected void
onChannelClose()
protected void
onChannelData(SshMsgChannelData msg)
protected void
onChannelEOF()
protected void
onChannelExtData(SshMsgChannelExtendedData msg)
protected void
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

socket

protected Socket socket

Method Details

bindSocket

public void bindSocket(Socket socket)
            throws IOException
Parameters:
socket -

onChannelClose

protected void onChannelClose()
            throws IOException
Overrides:
onChannelClose in interface Channel

onChannelData

protected void onChannelData(SshMsgChannelData msg)
            throws IOException
Overrides:
onChannelData in interface Channel
Parameters:
msg -

onChannelEOF

protected void onChannelEOF()
            throws IOException
Overrides:
onChannelEOF in interface Channel

onChannelExtData

protected void onChannelExtData(SshMsgChannelExtendedData msg)
            throws IOException
Overrides:
onChannelExtData in interface Channel
Parameters:
msg -

onChannelOpen

protected void onChannelOpen()
            throws IOException
Overrides:
onChannelOpen in interface Channel

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