|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.Channel
com.maverick.sshd.ForwardingChannel
com.maverick.sshd.SocketForwardingChannel
com.maverick.sshd.RemoteForwardingChannel
public class RemoteForwardingChannel
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.maverick.sshd.Channel |
|---|
Channel.QueuedData |
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.ForwardingChannel |
|---|
hostToConnect, originatingHost, originatingPort, portToConnect |
| Fields inherited from class com.maverick.sshd.Channel |
|---|
connection, localwindow, localWindowLock |
| Constructor Summary | |
|---|---|
RemoteForwardingChannel(java.lang.String addressToBind,
int portToBind,
java.nio.channels.SocketChannel socketChannel)
Constructs a forwarding channel of the type "forwarded-tcpip" |
|
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from class com.maverick.sshd.SocketForwardingChannel |
|---|
canClose, evaluateClosure, evaluateWindowSpace, getInterestedOps, initialize, onChannelClosed, onChannelClosing, onChannelData, onChannelFree, onChannelOpen, onChannelRequest, onExtendedData, onLocalEOF, onRemoteClose, processReadEvent, processWriteEvent, registrationCompleted, setThread, shutdownSocket |
| Methods inherited from class com.maverick.sshd.ForwardingChannel |
|---|
getHost, getOriginatingHost, getOriginatingPort, getPort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteForwardingChannel(java.lang.String addressToBind,
int portToBind,
java.nio.channels.SocketChannel socketChannel)
addressToBind - StringportToBind - intsocketChannel - SocketChannel| Method Detail |
|---|
protected byte[] createChannel()
throws java.io.IOException
createChannel in class SocketForwardingChanneljava.io.IOExceptionprotected void onRemoteEOF()
onRemoteEOF in class SocketForwardingChannelprotected void onRegistrationComplete()
SocketForwardingChannel
onRegistrationComplete in class SocketForwardingChannelprotected void onChannelOpenConfirmation()
Channel
onChannelOpenConfirmation in class SocketForwardingChannel
protected byte[] openChannel(byte[] requestdata)
throws WriteOperationRequest,
ChannelOpenException
Channel
openChannel in class SocketForwardingChannelWriteOperationRequest
ChannelOpenExceptionprotected void onChannelOpenFailure()
onChannelOpenFailure in class Channel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||