public class LocalForwardingChannel extends SocketForwardingChannel implements ClientConnector
Implements a Local forwarding channel for use with forwarding sockets from the client machine through the server to some endpoint reachable from the server machine.
Channel.DataBlock, Channel.QueuedData| Modifier and Type | Field and Description |
|---|---|
static String |
CHANNEL_TYPE |
hostToConnect, originatingHost, originatingPort, portToConnectconnection, localwindow, localWindowLock| Constructor and Description |
|---|
LocalForwardingChannel()
Constructs a forwarding channel of the type "direct-tcpip"
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPermissions()
Performs permission check with the ForwardingPolicy.
|
protected byte[] |
createChannel()
Create the forwarding channel.
|
boolean |
finishConnect(SelectionKey key)
Called when the forwarded socket has been connected.
|
String |
getUuid() |
protected void |
onChannelOpenConfirmation()
Called when the channel has been confirmed as open.
|
protected void |
onConnectionComplete() |
protected void |
onConnectionError(IOException e) |
protected void |
onRegistrationComplete()
Called when the forwarded sockets selector has been registered with a
com,maverick.nio.SelectorThread. |
protected byte[] |
openChannel(byte[] requestdata)
Open a forwarding channel.
|
canClose, canClose, evaluateClosure, evaluateWindowSpace, getInterestedOps, initialize, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelRequest, onExtendedData, onLocalEOF, onRemoteClose, onRemoteEOF, 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, onChannelOpenFailure, queueSize, registerExtendedData, resetIdleState, sendChannelData, sendChannelData, sendChannelData, sendChannelData, sendChannelDataAndBlock, sendChannelRequest, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjustclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregistrationCompletedpublic static final String CHANNEL_TYPE
public LocalForwardingChannel()
protected byte[] createChannel()
createChannel in class SocketForwardingChannelprotected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
ChannelOpenException
openChannel in class SocketForwardingChannelrequestdata - byte[]WriteOperationRequestChannelOpenExceptionprotected boolean checkPermissions()
protected void onRegistrationComplete()
com,maverick.nio.SelectorThread.onRegistrationComplete in class SocketForwardingChannelpublic boolean finishConnect(SelectionKey key)
finishConnect in interface ClientConnectorkey - SelectionKeyprotected void onConnectionComplete()
protected void onConnectionError(IOException e)
protected void onChannelOpenConfirmation()
onChannelOpenConfirmation in class SocketForwardingChannelpublic String getUuid()
getUuid in interface SocketHandlerCopyright © 2025. All rights reserved.