public class CallbackForwardingChannel<T extends com.sshtools.synergy.ssh.SshContext>
extends com.sshtools.synergy.ssh.ForwardingChannel<T>
Constructor and Description |
---|
CallbackForwardingChannel(com.sshtools.common.ssh.SshConnection con,
CallbackServer server) |
CallbackForwardingChannel(com.sshtools.common.ssh.SshConnection con,
CallbackServer server,
java.lang.String hostToConnect,
int portToConnect) |
CallbackForwardingChannel(java.lang.String channelType,
com.sshtools.common.ssh.SshConnection con,
java.lang.String hostToConnect,
int portToConnect)
Constructs a forwarding channel of the type "forwarded-tcpip"
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPermissions() |
protected byte[] |
createChannel()
Create the forwarding channel.
|
protected void |
onChannelClosed() |
protected void |
onChannelClosing() |
protected void |
onChannelData(java.nio.ByteBuffer data) |
protected void |
onChannelFree() |
protected void |
onChannelOpen() |
protected void |
onChannelOpenConfirmation()
Called when the channel has been confirmed as open.
|
protected void |
onChannelOpenFailure() |
protected void |
onChannelRequest(java.lang.String type,
boolean wantreply,
byte[] requestdata) |
protected void |
onLocalEOF() |
protected void |
onRegistrationComplete()
Called when the forwarded sockets selector has been registered with a
com,maverick.nio.SelectorThread . |
protected void |
onRemoteEOF() |
protected byte[] |
openChannel(byte[] requestdata)
Open a forwarding channel.
|
void |
setBoundChannel(CallbackForwardingChannel<?> channel) |
checkWindowSpace, getHost, getOriginatingHost, getOriginatingPort, getPort
addEventListener, canClose, clearIdleState, close, close, createCache, evaluateWindowSpace, getChannelType, getCloseFuture, getConnection, getConnectionProtocol, getContext, getInputStream, getLastActivity, getLocalId, getLocalPacket, getLocalWindow, getMaxiumRemotePacketSize, getMaxiumRemoteWindowSize, getOpenFuture, getOutputStream, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, getTimeout, haltIncomingData, isClosed, isClosing, isConnected, isIncomingDataHalted, isLocalEOF, isOpen, isRemoteEOF, log, log, log, logMessage, onChannelError, onExtendedData, onRemoteClose, onWindowAdjust, processChannelRequestResponse, registerExtendedDataType, resetIdleState, resumeIncomingData, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelRequest, sendChannelRequest, sendData, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust, sendWindowAdjust, setTimeout
public CallbackForwardingChannel(com.sshtools.common.ssh.SshConnection con, CallbackServer server)
public CallbackForwardingChannel(com.sshtools.common.ssh.SshConnection con, CallbackServer server, java.lang.String hostToConnect, int portToConnect)
public CallbackForwardingChannel(java.lang.String channelType, com.sshtools.common.ssh.SshConnection con, java.lang.String hostToConnect, int portToConnect)
addressToBind
- StringportToBind
- intsocketChannel
- SocketChannelpublic void setBoundChannel(CallbackForwardingChannel<?> channel)
protected byte[] createChannel() throws java.io.IOException
createChannel
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
java.io.IOException
protected byte[] openChannel(byte[] requestdata) throws com.sshtools.common.nio.WriteOperationRequest, com.sshtools.common.ssh.ChannelOpenException
openChannel
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
requestdata
- byte[]com.sshtools.common.nio.WriteOperationRequest
com.sshtools.common.ssh.ChannelOpenException
protected boolean checkPermissions()
protected void onRegistrationComplete()
com,maverick.nio.SelectorThread
.protected void onChannelOpenConfirmation()
onChannelOpenConfirmation
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelData(java.nio.ByteBuffer data)
onChannelData
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelOpenFailure()
onChannelOpenFailure
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelFree()
onChannelFree
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelClosed()
onChannelClosed
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelOpen()
onChannelOpen
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelClosing()
onChannelClosing
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onChannelRequest(java.lang.String type, boolean wantreply, byte[] requestdata)
onChannelRequest
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onRemoteEOF()
onRemoteEOF
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
protected void onLocalEOF()
onLocalEOF
in class com.sshtools.synergy.ssh.ChannelNG<T extends com.sshtools.synergy.ssh.SshContext>
Copyright © 2021. All rights reserved.