tunnelOpen: Determine whether a tunnel opened by tunnelr is running

Description Usage Arguments Value Examples

View source: R/tunnel.R

Description

Determine whether a tunnel opened by tunnelr is running

Usage

1

Arguments

con

An object of class "tunnel" returned by tunnel().

Value

TRUE if the SSH tunnel is open, FALSE otherwise.

Examples

1
2
3
4
5
6
7
8
## Not run: 
sshTunnel = tunnel(remote_server, server_username,
                   remote_port, local_port)
tunnelOpen(sshTunnel) # returns TRUE
closeTunnel(sshTunnel)
tunnelOpen(sshTunnel) # returns FALSE

## End(Not run)

wmay/tunnelr documentation built on May 4, 2019, 9:45 a.m.