public class ForwardingSocketChannel extends SocketChannel implements ForwardingChannel
socket
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
LOCAL_FORWARDING_CHANNEL, REMOTE_FORWARDING_CHANNEL, X11_FORWARDING_CHANNEL
Constructor and Description |
---|
ForwardingSocketChannel(java.lang.String forwardType,
java.lang.String name,
java.lang.String hostToConnectOrBind,
int portToConnectOrBind,
java.lang.String originatingHost,
int originatingPort)
Creates a new ForwardingSocketChannel object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getChannelConfirmationData() |
byte[] |
getChannelOpenData() |
java.lang.String |
getChannelType() |
java.lang.String |
getHostToConnectOrBind() |
protected int |
getMaximumPacketSize() |
protected int |
getMaximumWindowSpace() |
protected int |
getMinimumWindowSpace() |
java.lang.String |
getName() |
java.lang.String |
getOriginatingHost() |
int |
getOriginatingPort() |
int |
getPortToConnectOrBind() |
protected void |
onChannelRequest(java.lang.String request,
boolean wantReply,
byte[] requestData) |
bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtData, onChannelOpen
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF
public ForwardingSocketChannel(java.lang.String forwardType, java.lang.String name, java.lang.String hostToConnectOrBind, int portToConnectOrBind, java.lang.String originatingHost, int originatingPort) throws ForwardingConfigurationException
forwardType
- hostToConnectOrBind
- portToConnectOrBind
- originatingHost
- originatingPort
- ForwardingConfigurationException
public java.lang.String getName()
getName
in interface ForwardingChannel
getName
in class Channel
public byte[] getChannelOpenData()
getChannelOpenData
in class Channel
public byte[] getChannelConfirmationData()
getChannelConfirmationData
in class Channel
public java.lang.String getChannelType()
getChannelType
in interface ForwardingChannel
getChannelType
in class Channel
protected int getMinimumWindowSpace()
getMinimumWindowSpace
in class Channel
protected int getMaximumWindowSpace()
getMaximumWindowSpace
in class Channel
protected int getMaximumPacketSize()
getMaximumPacketSize
in class Channel
public java.lang.String getOriginatingHost()
getOriginatingHost
in interface ForwardingChannel
public int getOriginatingPort()
getOriginatingPort
in interface ForwardingChannel
public java.lang.String getHostToConnectOrBind()
getHostToConnectOrBind
in interface ForwardingChannel
public int getPortToConnectOrBind()
getPortToConnectOrBind
in interface ForwardingChannel
protected void onChannelRequest(java.lang.String request, boolean wantReply, byte[] requestData) throws java.io.IOException
onChannelRequest
in class Channel
request
- wantReply
- requestData
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.