public void connect( SocketFactory socketFactory, String host, int port, int timeout ) throws Exception { logger.debug( "connecting session" ); session.connect(); channel = session.getStreamForwarder( host, port ); inputStream = channel.getInputStream(); outputStream = channel.getOutputStream(); channel.connect( timeout ); }
public void connect( SocketFactory socketFactory, String host, int port, int timeout ) throws Exception { logger.debug( "connecting session" ); session.connect(); channel = session.getStreamForwarder( host, port ); inputStream = channel.getInputStream(); outputStream = channel.getOutputStream(); channel.connect( timeout ); }