TorListeners

Holder for TorRuntime listener addresses.

See also

Constructors

Link copied to clipboard
@JvmOverloads
constructor(dir: Set<IPSocketAddress> = emptySet(), dns: Set<IPSocketAddress> = emptySet(), http: Set<IPSocketAddress> = emptySet(), metrics: Set<IPSocketAddress> = emptySet(), natd: Set<IPSocketAddress> = emptySet(), or: Set<IPSocketAddress> = emptySet(), orExt: Set<IPSocketAddress> = emptySet(), socks: Set<IPSocketAddress> = emptySet(), socksUnix: Set<File> = emptySet(), trans: Set<IPSocketAddress> = emptySet())

Properties

Link copied to clipboard
@JvmField
val dir: Set<IPSocketAddress>

Listeners defined by TorOption.DirPort and its non-persistent counterpart, TorOption.__DirPort.

Link copied to clipboard
@JvmField
val dns: Set<IPSocketAddress>

Listeners defined by TorOption.DNSPort and its non-persistent counterpart, TorOption.__DNSPort.

Link copied to clipboard
@JvmField
val http: Set<IPSocketAddress>

Listeners defined by TorOption.HTTPTunnelPort and its non-persistent counterpart, TorOption.__HTTPTunnelPort.

Link copied to clipboard
@get:JvmName(name = "isEmpty")
val isEmpty: Boolean

Helper to check if there are any listeners available for all types (dns, http, socks, socksUnix, trans).

Link copied to clipboard
@JvmField
val metrics: Set<IPSocketAddress>

Listeners defined by TorOption.MetricsPort and its non-persistent counterpart, TorOption.__MetricsPort.

Link copied to clipboard
@JvmField
val natd: Set<IPSocketAddress>

Listeners defined by TorOption.NATDPort and its non-persistent counterpart, TorOption.__NATDPort.

Link copied to clipboard
@JvmField
val or: Set<IPSocketAddress>

Listeners defined by TorOption.ORPort and its non-persistent counterpart, TorOption.__ORPort.

Link copied to clipboard
@JvmField
val orExt: Set<IPSocketAddress>

Listeners defined by TorOption.ExtORPort and its non-persistent counterpart, TorOption.__ExtORPort.

Link copied to clipboard
@JvmField
val socks: Set<IPSocketAddress>

Listeners defined by TorOption.SocksPort and its non-persistent counterpart, TorOption.__SocksPort, configured as TCP ports.

Link copied to clipboard
@JvmField
val socksUnix: Set<File>

Listeners defined by TorOption.SocksPort and its non-persistent counterpart, TorOption.__SocksPort, configured as Unix Sockets.

Link copied to clipboard
@JvmField
val trans: Set<IPSocketAddress>

Listeners defined by TorOption.TransPort and its non-persistent counterpart, TorOption.__TransPort.

Functions

Link copied to clipboard
fun copy(dir: Set<IPSocketAddress> = this.dir, dns: Set<IPSocketAddress> = this.dns, http: Set<IPSocketAddress> = this.http, metrics: Set<IPSocketAddress> = this.metrics, natd: Set<IPSocketAddress> = this.natd, or: Set<IPSocketAddress> = this.or, orExt: Set<IPSocketAddress> = this.orExt, socks: Set<IPSocketAddress> = this.socks, socksUnix: Set<File> = this.socksUnix, trans: Set<IPSocketAddress> = this.trans): TorListeners