tramp-gw-open-connection

tramp-gw-open-connection is an autoloaded Lisp function in `tramp-gw.el'.

(tramp-gw-open-connection VEC GW-VEC TARGET-VEC)

Open a remote connection to VEC (see `tramp-file-name' structure).
Take GW-VEC as SOCKS or HTTP gateway, i.e. its method must be a
gateway method. TARGET-VEC identifies where to connect to via
the gateway, it can be different from VEC when there are more
hops to be applied.

It returns a string like "localhost#port", which must be used
instead of the host name declared in TARGET-VEC.