public class RemoteForwardingChannel extends SocketForwardingChannel
Implements a Remote forwarding channel for use with forwarding sockets from the server machine through the client to some endpoint reachable from the client machine.
Channel.DataBlock, Channel.QueuedData| Modifier and Type | Field and Description |
|---|---|
static String |
REMOTE_TYPE |
static String |
X11_TYPE |
hostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock| Modifier | Constructor and Description |
|---|---|
|
RemoteForwardingChannel(String addressToBind,
int portToBind,
SocketChannel socketChannel)
Constructs a forwarding channel of the type "forwarded-tcpip"
|
protected |
RemoteForwardingChannel(String name,
String addressToBind,
int portToBind,
SocketChannel socketChannel) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
createChannel()
Creates the end of the channelopenmessage string address that was
connected uint32 port that was connected string originator IP address
uint32 originator port
|
String |
getUuid() |
protected void |
onChannelOpenConfirmation()
Called when the channel has been confirmed as open by the remote side -
this method is only called when the channel has been requested by this
side of the connection
|
protected void |
onChannelOpenFailure()
Either nothing was listening on the clients end of the tunnel, or the
connection was rejected.
|
protected void |
onRegistrationComplete()
Called by the subsystem when the selector registration has been
completed.
|
protected void |
onRemoteEOF()
Called when the remote side is EOF.
|
protected byte[] |
openChannel(byte[] requestdata)
Called when the channel is being opened.
|
canClose, canClose, evaluateClosure, evaluateWindowSpace, getInterestedOps, initialize, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelRequest, onExtendedData, onLocalEOF, onRemoteClose, onWindowAdjust, processReadEvent, processWriteEvent, registrationCompleted, run, setSelectionKey, setThread, shutdownSocketgetHost, getOriginatingHost, getOriginatingPort, getPortaddEventListener, addInputListener, addOutputListener, clearIdleState, close, close, consumeWindowSpace, createCloseTask, executeTask, getChannelType, getConnection, getContext, getLocalId, getLocalPacket, getLocalWindow, getQueueSize, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, isClosed, isClosing, isEOF, isOpen, isSelfManagedWindowSpace, markEOF, queueSize, registerExtendedData, resetIdleState, sendChannelData, sendChannelData, sendChannelData, sendChannelData, sendChannelDataAndBlock, sendChannelRequest, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjustpublic static final String REMOTE_TYPE
public static final String X11_TYPE
public RemoteForwardingChannel(String addressToBind, int portToBind, SocketChannel socketChannel)
addressToBind - StringportToBind - intsocketChannel - SocketChannelprotected RemoteForwardingChannel(String name, String addressToBind, int portToBind, SocketChannel socketChannel)
name - addressToBind - portToBind - socketChannel - protected byte[] createChannel()
throws IOException
createChannel in class SocketForwardingChannelIOExceptionprotected void onRemoteEOF()
onRemoteEOF in class SocketForwardingChannelprotected void onRegistrationComplete()
SocketForwardingChannelonRegistrationComplete in class SocketForwardingChannelprotected void onChannelOpenConfirmation()
ChannelonChannelOpenConfirmation in class SocketForwardingChannelprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
ChannelOpenException
ChannelopenChannel in class SocketForwardingChannelWriteOperationRequestChannelOpenExceptionprotected void onChannelOpenFailure()
onChannelOpenFailure in class Channelpublic String getUuid()
Copyright © 2025. All rights reserved.