Open this tunnel asynchronously.
public func openAsync(service: String, localPort: UInt16, closure: @escaping AsyncStatusReceiver)
- The service to connect to on the remote device (as defined in the device's configuration), e.g. "http", "http-admin", "ssh", "rtsp".
- The local port to listen on. If 0 is specified, an ephemeral port is used, it can be retrieved with
getLocalPort()when the tunnel has been opened successfully.
- Invoked when the tunnel is opened or an error occurs.
Throws the following errors: