package io.fathom.cloud.ssh.mina;
//
//import java.io.IOException;
//import java.net.InetSocketAddress;
//
//public class SshClientSessionImpl {
// final ClientSession inner;
//
// public SshClientSessionImpl(ClientSession inner) {
// super();
// this.inner = inner;
// }
//
// public ChannelDirectTcpip createDirectTcpipChannel(
// InetSocketAddress tunnelLocal, InetSocketAddress tunnelRemote)
// throws Exception {
// SshdSocketAddress sshTunnelLocal = new SshdSocketAddress(tunnelLocal
// .getAddress().getHostAddress(), tunnelLocal.getPort());
// SshdSocketAddress sshTunnelRemote = new SshdSocketAddress(tunnelRemote
// .getAddress().getHostAddress(), tunnelRemote.getPort());
//
// return inner.createDirectTcpipChannel(sshTunnelLocal, sshTunnelRemote);
//
// }
//
// public void close() throws IOException {
// boolean immediately = true;
// CloseFuture closeFuture = inner.close(immediately);
// try {
// closeFuture.await();
// // inner = null;
// } catch (InterruptedException e) {
// Thread.currentThread().interrupt();
// throw new IOException("Error waiting for session close", e);
// }
// }
//
// public void createSftp() {
// }
//
// }