| java.lang.Object ch.ethz.ssh2.channel.ChannelManager
ChannelManager | public class ChannelManager implements MessageHandler(Code) | | ChannelManager. Please read the comments in Channel.java.
Besides the crypto part, this is the core of the library.
author: Christian Plattner, plattner@inf.ethz.ch version: $Id: ChannelManager.java,v 1.15 2006/08/11 12:24:01 cplattne Exp $ |
Method Summary | |
public X11ServerData | checkX11Cookie(String hexFakeCookie) | public void | closeAllChannels() | public void | closeChannel(Channel c, String reason, boolean force) | public int | getAvailable(Channel c, boolean extended) | public int | getChannelData(Channel c, boolean extended, byte[] target, int off, int len) | public void | handleMessage(byte[] msg, int msglen) | public void | msgChannelClose(byte[] msg, int msglen) | public void | msgChannelData(byte[] msg, int msglen) | public void | msgChannelEOF(byte[] msg, int msglen) | public void | msgChannelExtendedData(byte[] msg, int msglen) | public void | msgChannelFailure(byte[] msg, int msglen) | public void | msgChannelOpen(byte[] msg, int msglen) | public void | msgChannelOpenConfirmation(byte[] msg, int msglen) | public void | msgChannelOpenFailure(byte[] msg, int msglen) | public void | msgChannelRequest(byte[] msg, int msglen) | public void | msgChannelSuccess(byte[] msg, int msglen) | public void | msgChannelWindowAdjust(byte[] msg, int msglen) | public void | msgGlobalFailure() | public void | msgGlobalRequest(byte[] msg, int msglen) | public void | msgGlobalSuccess() | public Channel | openDirectTCPIPChannel(String host_to_connect, int port_to_connect, String originator_IP_address, int originator_port) | public Channel | openSessionChannel() | public void | registerThread(IChannelWorkerThread thr) | public void | registerX11Cookie(String hexFakeCookie, X11ServerData data) | public void | requestCancelGlobalForward(int bindPort) | public void | requestExecCommand(Channel c, String cmd) | public int | requestGlobalForward(String bindAddress, int bindPort, String targetAddress, int targetPort) | public void | requestPTY(Channel c, String term, int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels, byte[] terminal_modes) | public void | requestShell(Channel c) | public void | requestSubSystem(Channel c, String subSystemName) | public void | requestX11(Channel c, boolean singleConnection, String x11AuthenticationProtocol, String x11AuthenticationCookie, int x11ScreenNumber) | public void | sendData(Channel c, byte[] buffer, int pos, int len) | public void | sendEOF(Channel c) | public void | sendOpenConfirmation(Channel c) | public void | unRegisterX11Cookie(String hexFakeCookie, boolean killChannels) | public int | waitForCondition(Channel c, long timeout, int condition_mask) Wait until for a condition. |
closeAllChannels | public void closeAllChannels()(Code) | | |
getChannelData | public int getChannelData(Channel c, boolean extended, byte[] target, int off, int len) throws IOException(Code) | | |
handleMessage | public void handleMessage(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelClose | public void msgChannelClose(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelData | public void msgChannelData(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelEOF | public void msgChannelEOF(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelExtendedData | public void msgChannelExtendedData(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelFailure | public void msgChannelFailure(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelOpen | public void msgChannelOpen(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelOpenConfirmation | public void msgChannelOpenConfirmation(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelOpenFailure | public void msgChannelOpenFailure(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelRequest | public void msgChannelRequest(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelSuccess | public void msgChannelSuccess(byte[] msg, int msglen) throws IOException(Code) | | |
msgChannelWindowAdjust | public void msgChannelWindowAdjust(byte[] msg, int msglen) throws IOException(Code) | | |
msgGlobalRequest | public void msgGlobalRequest(byte[] msg, int msglen) throws IOException(Code) | | |
openDirectTCPIPChannel | public Channel openDirectTCPIPChannel(String host_to_connect, int port_to_connect, String originator_IP_address, int originator_port) throws IOException(Code) | | |
requestCancelGlobalForward | public void requestCancelGlobalForward(int bindPort) throws IOException(Code) | | |
requestGlobalForward | public int requestGlobalForward(String bindAddress, int bindPort, String targetAddress, int targetPort) throws IOException(Code) | | |
requestPTY | public void requestPTY(Channel c, String term, int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels, byte[] terminal_modes) throws IOException(Code) | | |
requestX11 | public void requestX11(Channel c, boolean singleConnection, String x11AuthenticationProtocol, String x11AuthenticationCookie, int x11ScreenNumber) throws IOException(Code) | | |
unRegisterX11Cookie | public void unRegisterX11Cookie(String hexFakeCookie, boolean killChannels)(Code) | | |
waitForCondition | public int waitForCondition(Channel c, long timeout, int condition_mask)(Code) | | Wait until for a condition.
Parameters: c - Channel Parameters: timeout - in ms, 0 means no timeout. Parameters: condition_mask - minimum event mask all current events |
|
|