checkX11Cookie
public X11ServerData checkX11Cookie(String hexFakeCookie)
closeAllChannels
public void closeAllChannels()
closeChannel
public void closeChannel(Channel c,
String reason,
boolean force)
throws IOException
getAvailable
public int getAvailable(Channel c,
boolean extended)
throws IOException
getChannelData
public int getChannelData(Channel c,
boolean extended,
byte[] target,
int off,
int len)
throws IOException
msgChannelClose
public void msgChannelClose(byte[] msg,
int msglen)
throws IOException
msgChannelData
public void msgChannelData(byte[] msg,
int msglen)
throws IOException
msgChannelEOF
public void msgChannelEOF(byte[] msg,
int msglen)
throws IOException
msgChannelExtendedData
public void msgChannelExtendedData(byte[] msg,
int msglen)
throws IOException
msgChannelFailure
public void msgChannelFailure(byte[] msg,
int msglen)
throws IOException
msgChannelOpen
public void msgChannelOpen(byte[] msg,
int msglen)
throws IOException
msgChannelOpenConfirmation
public void msgChannelOpenConfirmation(byte[] msg,
int msglen)
throws IOException
msgChannelOpenFailure
public void msgChannelOpenFailure(byte[] msg,
int msglen)
throws IOException
msgChannelRequest
public void msgChannelRequest(byte[] msg,
int msglen)
throws IOException
msgChannelSuccess
public void msgChannelSuccess(byte[] msg,
int msglen)
throws IOException
msgChannelWindowAdjust
public void msgChannelWindowAdjust(byte[] msg,
int msglen)
throws IOException
msgGlobalFailure
public void msgGlobalFailure()
throws IOException
msgGlobalRequest
public void msgGlobalRequest(byte[] msg,
int msglen)
throws IOException
msgGlobalSuccess
public void msgGlobalSuccess()
throws IOException
openDirectTCPIPChannel
public Channel openDirectTCPIPChannel(String host_to_connect,
int port_to_connect,
String originator_IP_address,
int originator_port)
throws IOException
openSessionChannel
public Channel openSessionChannel()
throws IOException
registerThread
public void registerThread(com.trilead.ssh2.channel.IChannelWorkerThread thr)
throws IOException
registerX11Cookie
public void registerX11Cookie(String hexFakeCookie,
X11ServerData data)
requestCancelGlobalForward
public void requestCancelGlobalForward(int bindPort)
throws IOException
requestExecCommand
public void requestExecCommand(Channel c,
String cmd)
throws IOException
requestGlobalForward
public int requestGlobalForward(String bindAddress,
int bindPort,
String targetAddress,
int targetPort)
throws IOException
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
requestShell
public void requestShell(Channel c)
throws IOException
requestSubSystem
public void requestSubSystem(Channel c,
String subSystemName)
throws IOException
requestX11
public void requestX11(Channel c,
boolean singleConnection,
String x11AuthenticationProtocol,
String x11AuthenticationCookie,
int x11ScreenNumber)
throws IOException
sendData
public void sendData(Channel c,
byte[] buffer,
int pos,
int len)
throws IOException
sendEOF
public void sendEOF(Channel c)
throws IOException
sendOpenConfirmation
public void sendOpenConfirmation(Channel c)
throws IOException
unRegisterX11Cookie
public void unRegisterX11Cookie(String hexFakeCookie,
boolean killChannels)
waitForCondition
public int waitForCondition(Channel c,
long timeout,
int condition_mask)
Wait until for a condition.
c
- Channeltimeout
- in ms, 0 means no timeout.condition_mask
- minimum event mask