Instance Property
port
The TCP port number.
let port: Int
Discussion
Typed as Int for ergonomics; valid values are 1–65535 (RFC 6335 §6), but the initializer does not enforce the range. A value outside that range is accepted at construction and rejected by connect(2) when the endpoint is actually dialled, surfacing as TorError.ioError(_:).
Stability: immutable (let).
Typical values: 9050 (Tor SOCKS5 default), 9051 (Tor control port default), 80 / 443 for onion-service forwarding targets.