The base stream which is used for the TLS tunnel
TLS context used for initiating the tunnel
The manually specified tunnel state
DNS name of the remote peer, used for certificate validation
IP address of the remote peer, used for certificate validation
Constructs a new TLS tunnel, allowing to override the stream state.
This constructor allows to specify a custom tunnel state, which can be useful when a tunnel has already been established by other means.