public ActiveTunnel [ ] getLocalForwardingTunnels ( ) throws IOException { Vector < ActiveTunnel > v = new Vector < ActiveTunnel > ( ) ; String [ ] localForwardings = getLocalForwardings ( ) ; for ( int i = 0 ; i < localForwardings . length ; i ++ ) { ActiveTunnel [ ] tmp = getLocalForwardingTunnels ( localForwardings [ i ] ) ; for ( int x = 0 ; x < tmp . length ; x ++ ) { v . add ( tmp [ x ] ) ; } } return ( ActiveTunnel [ ] ) v . toArray ( new ActiveTunnel [ v . size ( ) ] ) ; }
Get all the active local forwarding tunnels