connect

Connects to a tor control listener via TCP port.

NOTE: This is a blocking call and should be invoked from a background thread.

Throws

If connection attempt fails


fun connect(path: File): TorCtrl(source)

Connects to a tor control listener via UnixDomainSocket.

NOTE: This is a blocking call and should be invoked from a background thread.

Throws

If connection attempt fails

UnsupportedOperationException

if tor, or system this is running on does not support UnixDomainSockets