|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jscape.inet.ssh.connection.RemotePort
public class RemotePort
| Field Summary | |
|---|---|
static java.lang.String |
ANY_HOST
This value means that the server accepts connection from any host |
static int |
ANY_PORT
This value means that the server binds the first free port |
static java.lang.String |
CLOSE_REQUEST
Global request name for closing remote port forwarding |
static java.lang.String |
OPEN_REQUEST
Global request name for opening remote port forwarding |
| Constructor Summary | |
|---|---|
RemotePort(java.net.InetAddress address,
int port,
Connection connection)
Creates a new remote port forwarding service. |
|
| Method Summary | |
|---|---|
Channel |
accept()
Accepts the incoming remote connection. |
void |
close()
Closes the remote port forwarding service. |
java.net.InetAddress |
getAddress()
Obtains the host address from which this service accepts the connections. |
int |
getPort()
Obtains the port value which this service is bound to. |
Message |
handle(com.jscape.inet.ssh.connection.messages.SshMsgChannelOpen request)
|
boolean |
isClosed()
Checks if the remote port forwarding service is closed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPEN_REQUEST
public static final java.lang.String CLOSE_REQUEST
public static final java.lang.String ANY_HOST
public static final int ANY_PORT
| Constructor Detail |
|---|
public RemotePort(java.net.InetAddress address,
int port,
Connection connection)
throws java.io.IOException,
ConnectionException
address - the host address from which this service accepts
the connections, "0.0.0.0" for any hostport - the port to listenconnection - the underlayed connection service
java.io.IOException
ConnectionException| Method Detail |
|---|
public java.net.InetAddress getAddress()
public int getPort()
public Channel accept()
throws java.io.IOException
java.io.IOException - if an I/O error occurs or the service is closedpublic Message handle(com.jscape.inet.ssh.connection.messages.SshMsgChannelOpen request)
request - public void close()
public boolean isClosed()
true if the remote port forwarding is closed;
false otherwise
|
Secure iNet Factory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||