Class CliTunnel
- Namespace
- Valheim.Testing.GameSessions
- Assembly
- Valheim.Testing.GameSessions.dll
A local loopback endpoint for a ValheimCLI that listens on its host's loopback only. For a remote host it is an ssh local forward this process started; disposing stops that process, and only that one. Otherwise nothing was started.
public sealed class CliTunnel
- Inheritance
-
objectCliTunnel
Properties
Address
Always loopback: a tunnel never listens on another address.
public string Address { get; }
Property Value
- string
Forwarded
True when an ssh process forwards the port; false when the host's loopback is this machine's.
public bool Forwarded { get; }
Property Value
- bool
HasExited
True once a forward ended, for example because the connection dropped, and after Dispose().
public bool HasExited { get; }
Property Value
- bool
HostPort
The ValheimCLI port on the host's 127.0.0.1.
public int HostPort { get; }
Property Value
- int
LocalPort
The port on 127.0.0.1 here.
public int LocalPort { get; }
Property Value
- int
StandardError
What the forwarding ssh wrote to stderr so far, such as a refused channel to the host's port.
public string StandardError { get; }
Property Value
- string
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()