Session.java:
public boolean isPortForwardingLConnected(String boundaddress, int lport){
try {
PortWatcher pw = PortWatcher.getPort(this, boundaddress, lport);
if(pw==null)
return false;
return pw.isConnected();
} catch (Exception e) {
return false;
}
}
PortWatcher.java:
private ChannelDirectTCPIP channel;
En run() setear el channel de la clase
public boolean isConnected(){
if(channel==null)
return false;
return channel.isConnected();
}
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario