Exec

abstract class Exec : ResourceLoader.Tor(source)

Model for running tor as an executable within a child process.

Platform availability (for running executables):

  • Android

  • Jvm

  • Native Android

  • Native Linux

  • Native macOS (if not using app-sandbox)

  • Native Windows

  • Node.js

See also

Constructors

Link copied to clipboard
protected constructor()

Can extend to gain access to protected static functions, but never instantiate.

Types

Link copied to clipboard
protected object Companion

Properties

Link copied to clipboard
@JvmField
val resourceDir: File

The absolute path to the directory for which resources will be extracted.

Functions

Link copied to clipboard
open fun extract(): GeoipFiles

Extract tor's geoip & geoip6 files from application resources to resourceDir.

Link copied to clipboard
open fun <T> process(binder: ResourceLoader.RuntimeBinder, block: (tor: File, configureEnv: MutableMap<String, String>.() -> Unit) -> T): T

Lambda for building and/or spawning a process.