TcpTunnel.openCallback()
DESCRIPTION
Open this tunnel without blocking. See TcpTunnel.open() for error codes.
DECLARATION
public void openCallback(String service, int localPort, NabtoCallback callback)
PARAMETERS
service:
- The service to connect to on the remote device (as defined in the device's configuration), e.g. "http", "http-admin", "ssh", "rtsp".
localPort:
- The local port to listen on. If 0 is specified, an ephemeral port is used, it can be retrieved with
getLocalPort()
. callback:
- The callback that will be run once the tunnel is opened.