com.maverick.ssh
Interface ChannelEventListener

All Known Implementing Classes:
ChannelAdapter

public interface ChannelEventListener

An event interface that provides notifications of SshChannel events.

Author:
Lee David Painter

Method Summary
 void channelClosed(SshChannel channel)
          A channel is closed.
 void channelClosing(SshChannel channel)
          A channel is closing.
 void channelEOF(SshChannel channel)
          A channel's input is EOF.
 void channelOpened(SshChannel channel)
          A channel has been opened.
 void dataReceived(SshChannel channel, byte[] data, int off, int len)
          A block of data has been received by the channel.
 void dataSent(SshChannel channel, byte[] data, int off, int len)
          A block of data has been sent by the channel.
 void extendedDataReceived(SshChannel channel, byte[] data, int off, int len, int extendedDataType)
          A block of extended data has been received by the channel.
 

Method Detail

channelOpened

public void channelOpened(SshChannel channel)
A channel has been opened. This is called once the client has confirmed, or received a confirmation from the server that a channel has been opened.

Parameters:
channel - the opened channel.

channelClosing

public void channelClosing(SshChannel channel)
A channel is closing. This is called before a channel is confirmed as being closed.

Parameters:
channel - the channel closing.

channelClosed

public void channelClosed(SshChannel channel)
A channel is closed. This is called when the channel has finally been closed.

Parameters:
channel - the closed channel.

channelEOF

public void channelEOF(SshChannel channel)
A channel's input is EOF. This is called when the remote side reports that it will not be sending any more data.

Parameters:
channel - SshChannel

dataReceived

public void dataReceived(SshChannel channel,
                         byte[] data,
                         int off,
                         int len)
A block of data has been received by the channel. This implementation should provide the data but not interfere with normal data processing of the channel.

Parameters:
channel - SshChannel
data - byte[]
off - int
len - int

dataSent

public void dataSent(SshChannel channel,
                     byte[] data,
                     int off,
                     int len)
A block of data has been sent by the channel. This implementation should provide the data but not interfere with normal data processing of the channel.

Parameters:
channel - SshChannel
data - byte[]
off - int
len - int

extendedDataReceived

public void extendedDataReceived(SshChannel channel,
                                 byte[] data,
                                 int off,
                                 int len,
                                 int extendedDataType)
A block of extended data has been received by the channel.

Parameters:
channel -
data -
off -
len -
extendedDataType - the extended data type


Copyright © 2003 3SP LTD. All Rights Reserved.