public interface SshTunnel extends SshChannel, SshTransport
Interface defining the contract for SSH forwarding channels.
Forwarding channels can either be local or remote. Local forwarding transfers data from the local computer to the remote side where it is delivered to the specified host. Remote forwarding is when the remote computer forwards data to the local side.
Modifier and Type | Method and Description |
---|---|
String |
getListeningAddress()
The source ip address of the connection that is being forwarded.
|
int |
getListeningPort()
The source port of the connection being forwarded.
|
String |
getOriginatingHost()
The host that made the initial connection to the listening address.
|
int |
getOriginatingPort()
The port of the initial connection.
|
int |
getPort()
The port to which the data is being forwarded.
|
SshTransport |
getTransport()
The connection being forwarded (local forwarding) or the destination
of the forwarding (remote forwarding).
|
boolean |
isLocal()
Determines the type of forwarding channel.
|
boolean |
isLocalEOF() |
boolean |
isRemoteEOF() |
boolean |
isX11()
Determine if this channel is an X11 forwarding channel.
|
addChannelEventListener, getChannelId, getClient, getMaximumLocalPacketLength, getMaximumLocalWindowSize, getMaximumRemotePacketLength, getMaximumRemoteWindowSize, getMessageRouter, getRemoteWindow, isClosed, removeChannelEventListener, setAutoConsumeInput, waitForOpen
duplicate, getHost
close, getInputStream, getOutputStream
int getPort()
getPort
in interface SshTransport
String getListeningAddress()
int getListeningPort()
String getOriginatingHost()
int getOriginatingPort()
boolean isLocal()
boolean isX11()
SshTransport getTransport()
boolean isLocalEOF()
boolean isRemoteEOF()
Copyright © 2024. All rights reserved.